Skip to content

Commit

Permalink
Merge pull request #60 from chuckdumont/master
Browse files Browse the repository at this point in the history
Update to 2.7.1
  • Loading branch information
chuckdumont authored Mar 26, 2018
2 parents d90b73e + dc8c496 commit a5fa638
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 9 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{
"name": "dojo-webpack-plugin-sample",
"version": "2.7.0",
"version": "2.7.1",
"devDependencies": {
"copy-webpack-plugin": "4.5.1",
"css-loader": "0.28.10",
"dijit": "1.13.0",
"dojo": "1.13.0",
"dojo-util": "1.13.0",
"dojo-webpack-plugin": "2.7.0",
"dojo-webpack-plugin": "2.7.1",
"dojox": "1.12.2",
"less": "2.7.1",
"less-loader": "4.1.0",
Expand Down
25 changes: 18 additions & 7 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
*/
var DojoWebpackPlugin = require("dojo-webpack-plugin");
var CopyWebpackPlugin = require("copy-webpack-plugin");
var UglifyJsPlugin = require("uglifyjs-webpack-plugin");

var path = require("path");
var webpack = require("webpack");
Expand Down Expand Up @@ -46,8 +47,7 @@ module.exports = {
loaderConfig: require("./js/loaderConfig"),
environment: {dojoRoot: "release"}, // used at run time for non-packed resources (e.g. blank.gif)
buildEnvironment: {dojoRoot: "node_modules"}, // used at build time
locales: ["en"],
requireFnPropName: "dojo"
locales: ["en"]
}),

// Copy non-packed resources needed by the app to the release directory
Expand All @@ -70,9 +70,20 @@ module.exports = {
modules: ["node_modules"]
},
mode: "production",
devtool: "#source-map",
node: {
process: false,
global: false
}
optimization: {
minimizer: [
// we specify a custom UglifyJsPlugin here to get source maps in production
new UglifyJsPlugin({
cache: true,
parallel: true,
uglifyOptions: {
compress: true,
mangle: true,
output: {comments:false}
},
sourceMap: true
})
]
},
devtool: "#source-map"
};

0 comments on commit a5fa638

Please sign in to comment.