1
0
mirror of synced 2025-12-09 07:08:17 +08:00

chore: update webpack version

This commit is contained in:
redhoodsu
2022-07-01 16:27:04 +08:00
parent b53711cf02
commit 1fa9cd0fbb
3 changed files with 14 additions and 17 deletions

View File

@@ -1,5 +1,5 @@
const BundleAnalyzerPlugin = require('webpack-bundle-analyzer')
.BundleAnalyzerPlugin
const BundleAnalyzerPlugin =
require('webpack-bundle-analyzer').BundleAnalyzerPlugin
exports = require('./webpack.release')

View File

@@ -36,7 +36,9 @@ module.exports = {
symlinks: false,
},
devServer: {
contentBase: './test',
static: {
directory: path.join(__dirname, '../test'),
},
port: 3000,
},
output: {
@@ -66,16 +68,11 @@ module.exports = {
},
{
test: /\.scss$/,
loaders: [
cssMinifierLoader,
'css-loader',
postcssLoader,
'sass-loader',
],
use: [cssMinifierLoader, 'css-loader', postcssLoader, 'sass-loader'],
},
{
test: /\.css$/,
loaders: [cssMinifierLoader, 'css-loader', postcssLoader],
use: [cssMinifierLoader, 'css-loader', postcssLoader],
},
// https://github.com/wycats/handlebars.js/issues/1134
{