TP-17651 | Lint Fixes
This commit is contained in:
@@ -2,9 +2,11 @@
|
||||
const { merge } = require('webpack-merge');
|
||||
const commonConfig = require('./webpack.common.js');
|
||||
|
||||
module.exports = envVars => {
|
||||
module.exports = (envVars) => {
|
||||
const { env } = envVars;
|
||||
const envConfig = env ? require(`./webpack.${env}.js`) : require(`./webpack.dev.js`);
|
||||
const envConfig = env
|
||||
? require(`./webpack.${env}.js`)
|
||||
: require(`./webpack.dev.js`);
|
||||
const config = merge(commonConfig, envConfig);
|
||||
return config;
|
||||
};
|
||||
|
||||
@@ -6,9 +6,9 @@ module.exports = {
|
||||
hot: true,
|
||||
host: '0.0.0.0',
|
||||
historyApiFallback: true,
|
||||
port: 3000
|
||||
port: 3000,
|
||||
},
|
||||
watchOptions: {
|
||||
ignored: /node_modules/
|
||||
}
|
||||
ignored: /node_modules/,
|
||||
},
|
||||
};
|
||||
|
||||
@@ -6,7 +6,7 @@ module.exports = {
|
||||
mode: 'production',
|
||||
devtool: 'source-map',
|
||||
plugins: [
|
||||
new CompressionPlugin({ exclude: ['config.js'] })
|
||||
new CompressionPlugin({ exclude: ['config.js'] }),
|
||||
// new AnalyzerPlugin()
|
||||
],
|
||||
optimization: {
|
||||
@@ -21,9 +21,9 @@ module.exports = {
|
||||
utilityVendor: {
|
||||
test: /[\\/]node_modules[\\/](react|react-dom|blockly|@material-ui|jspdf|lodash|moment|moment-timezone|html2canvas|canvg)[\\/]/,
|
||||
name: 'utility',
|
||||
enforce: true
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
enforce: true,
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user