How to use dojo-webpack-plugin - 2 common examples

To help you get started, we’ve selected a few dojo-webpack-plugin examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github hpcc-systems / Visualization / packages / dgrid-shim / webpack.config.js View on Github external
'dojo-sync-loader': false,
                    'dojo-test-sniff': false,
                    'dijit-legacy-requires': false,
                    "dojo-loader": false,
                    "bug-for-in-skips-shadowed": false,
                    "dojo-debug-messages": false,
                    "highcontrast": false
                }
            }),
            new DojoWebpackPlugin({
                loaderConfig: require("./src/loaderConfig"),
                environment: { dojoRoot: "./dist" },	// used at run time for non-packed resources (e.g. blank.gif)
                buildEnvironment: { dojoRoot: "../../node_modules" }, // used at build time
                locales: ["en"]
            }),
            new DojoWebpackPlugin.ScopedRequirePlugin(),
            // For plugins registered after the DojoAMDPlugin, data.request has been normalized and
            // resolved to an absMid and loader-config maps and aliases have been applied
            new webpack.NormalModuleReplacementPlugin(/^dojox\/gfx\/renderer!/, "dojox/gfx/canvas"),
            new webpack.NormalModuleReplacementPlugin(
                /^css!/, function (data) {
                    data.request = data.request.replace(/^css!/, "!style-loader!css-loader!")
                }
            ),
            new webpack.NormalModuleReplacementPlugin(
                /^xstyle\/css!/, function (data) {
                    data.request = data.request.replace(/^xstyle\/css!/, "!style-loader!css-loader!")
                }
            )
        ],
        resolveLoader: {
            modules: ["../../node_modules"]
github Esri / arcgis-webpack-plugin / test / unit / index.js View on Github external
before(() => {
    DojoWebpackPluginApplyStub = sinon.stub(DojoWebpackPlugin.prototype, 'apply');
  });

dojo-webpack-plugin

Supports using webpack with Dojo 1.x applications

(MIT OR Apache-2.0)
Latest version published 1 year ago

Package Health Score

51 / 100
Full package analysis