Skip to content

Commit b25faf6

Browse files
committed
fix: minimization for js
1 parent 3347651 commit b25faf6

File tree

5 files changed

+7
-9058
lines changed

5 files changed

+7
-9058
lines changed

Gruntfile.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,11 +137,14 @@ module.exports = function(grunt) {
137137
prod_min: Object.assign({}, webpackConfig, {
138138
mode: 'production',
139139
devtool: 'source-map',
140+
optimization: {
141+
minimize: true
142+
},
140143
output: {
141144
filename: 'materialize.min.js',
142145
path: path.resolve(__dirname, 'dist/js'),
143-
libraryTarget: 'umd',
144-
globalObject: 'this'
146+
libraryTarget: 'umd',
147+
globalObject: 'this'
145148
}
146149
}),
147150
},

0 commit comments

Comments
 (0)