|
|
|
@ -6,7 +6,6 @@ const version = require('../../package.json').version |
|
|
|
|
const fs = require('fs') |
|
|
|
|
const TerserPlugin = require("terser-webpack-plugin") |
|
|
|
|
const CssMinimizerPlugin = require("css-minimizer-webpack-plugin") |
|
|
|
|
const BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const versionData = { |
|
|
|
@ -74,13 +73,6 @@ module.exports = composePlugins(withNx(), withReact(), (config) => { |
|
|
|
|
}) |
|
|
|
|
) |
|
|
|
|
|
|
|
|
|
// if dev mode
|
|
|
|
|
if (process.env.NODE_ENV !== 'production') { |
|
|
|
|
config.plugins.push( |
|
|
|
|
new BundleAnalyzerPlugin() |
|
|
|
|
) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// souce-map loader
|
|
|
|
|
config.module.rules.push({ |
|
|
|
|
test: /\.js$/, |
|
|
|
|