How to use the terriajs/buildprocess/runWebpack.js function in terriajs

To help you get started, we’ve selected a few terriajs 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 magda-io / magda / magda-preview-map / gulpfile.js View on Github external
function(done) {
        var runWebpack = require("terriajs/buildprocess/runWebpack.js");
        var webpack = require("webpack");
        var webpackConfig = require("./buildprocess/webpack.config.js")(true);

        checkForDuplicateCesium();

        runWebpack(webpack, webpackConfig, done);
    }
);
github magda-io / magda / magda-preview-map / gulpfile.js View on Github external
function(done) {
        var runWebpack = require("terriajs/buildprocess/runWebpack.js");
        var webpack = require("webpack");
        var webpackConfig = require("./buildprocess/webpack.config.js")(false);

        checkForDuplicateCesium();

        runWebpack(
            webpack,
            Object.assign({}, webpackConfig, {
                plugins: [
                    new webpack.optimize.UglifyJsPlugin({ sourceMap: true }),
                    new webpack.optimize.OccurrenceOrderPlugin()
                ].concat(webpackConfig.plugins || [])
            }),
            done
        );
    }
);