Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,9 @@ module.exports = {
components: resolve('src/components'),
pages: resolve('src/pages'),
},
},
node: {
fs: 'empty'
fallback: {
fs: false
},
},
module: {
rules: [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@

const path = require('path');
const base = require('./webpack.base.conf');
const UglifyJsPlugin = require('uglifyjs-webpack-plugin');
const TerserPlugin = require('terser-webpack-plugin');
const MiniCssExtractPlugin = require('mini-css-extract-plugin');
const OptimizeCSSAssetsPlugin = require('optimize-css-assets-webpack-plugin');
const CssMinimizerPlugin = require('css-minimizer-webpack-plugin');
const { CleanWebpackPlugin } = require('clean-webpack-plugin');
// error:0308010C:digital envelope routines::unsupported
const crypto = require("crypto");
Expand All @@ -29,12 +29,10 @@ crypto.createHash = algorithm => ori_createHash(algorithm == "md4" ? "sha256" :
module.exports = Object.assign({}, base, {
optimization: {
minimizer: [
new UglifyJsPlugin({
cache: true,
new TerserPlugin({
parallel: true,
sourceMap: true,
}),
new OptimizeCSSAssetsPlugin({}),
new CssMinimizerPlugin(),
],
},
plugins: [
Expand Down
Loading
Loading