Skip to content

Commit

Permalink
Update build dependencies and configurations
Browse files Browse the repository at this point in the history
  • Loading branch information
zoeesilcock committed May 10, 2022
1 parent bd365e2 commit 09b6f4f
Show file tree
Hide file tree
Showing 5 changed files with 17,563 additions and 50 deletions.
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
16.15.0
36 changes: 12 additions & 24 deletions Gruntfile.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
var webpack = require('webpack');
var TerserPlugin = require('terser-webpack-plugin');
var webpackConfig = require('./webpack.config.js');

module.exports = function(grunt) {
Expand All @@ -11,33 +11,21 @@ module.exports = function(grunt) {
'webpack': {
options: webpackConfig,
build: {
plugins: [
new webpack.DefinePlugin({
"process.env": {
"NODE_ENV": JSON.stringify("production")
}
}),
new webpack.optimize.DedupePlugin(),
new webpack.optimize.UglifyJsPlugin({
minimize: true,
compress: {
warnings: false
}
})
]
mode: 'production',
optimization: {
minimize: true,
minimizer: [new TerserPlugin()],
},
}
},
'webpack-dev-server': {
options: {
webpack: webpackConfig
},
options: webpackConfig,
start: {
keepAlive: true,
contentBase: 'public',
webpack: {
devtool: 'eval',
debug: true
}
mode: 'development',
devtool: 'eval',
devServer: {
static: 'public',
},
}
},
'open': {
Expand Down
Loading

0 comments on commit 09b6f4f

Please sign in to comment.