diff options
author | crupest <crupest@outlook.com> | 2020-10-27 18:46:34 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2020-10-27 18:46:34 +0800 |
commit | 38c28864b1ae948c0a258290c092dce94a948575 (patch) | |
tree | 4408b336cd60fed220fcb157edcdf8a86c16d65c /Timeline/ClientApp/webpack.common.js | |
parent | 0062a22423806c9501752132133e14de02355760 (diff) | |
download | timeline-38c28864b1ae948c0a258290c092dce94a948575.tar.gz timeline-38c28864b1ae948c0a258290c092dce94a948575.tar.bz2 timeline-38c28864b1ae948c0a258290c092dce94a948575.zip |
build(front): Upgrade packages.
Diffstat (limited to 'Timeline/ClientApp/webpack.common.js')
-rw-r--r-- | Timeline/ClientApp/webpack.common.js | 17 |
1 files changed, 3 insertions, 14 deletions
diff --git a/Timeline/ClientApp/webpack.common.js b/Timeline/ClientApp/webpack.common.js index e13881cb..3779003e 100644 --- a/Timeline/ClientApp/webpack.common.js +++ b/Timeline/ClientApp/webpack.common.js @@ -1,6 +1,5 @@ const path = require("path");
const HtmlWebpackPlugin = require("html-webpack-plugin");
-const PnpWebpackPlugin = require("pnp-webpack-plugin");
const postcssPresetEnv = require("postcss-preset-env");
const Config = require("webpack-chain");
@@ -37,9 +36,6 @@ config.module .end()
.use("postcss")
.loader("postcss-loader")
- .options({
- plugins: () => [postcssPresetEnv(/* pluginOptions */)],
- })
.end();
config.module
@@ -50,9 +46,6 @@ config.module .end()
.use("postcss")
.loader("postcss-loader")
- .options({
- plugins: () => [postcssPresetEnv(/* pluginOptions */)],
- })
.end()
.use("sass")
.loader("sass-loader")
@@ -73,18 +66,14 @@ config.resolve.extensions .add(".jsx")
.add(".ts")
.add(".tsx")
- .end()
- .plugin("pnp")
- .use(PnpWebpackPlugin);
+ .end();
config.resolve.alias.set("@", path.resolve(__dirname, "src/app"));
-config.resolveLoader.plugin("pnp").use(PnpWebpackPlugin.moduleLoader(module));
-
config.output
.path(path.resolve(__dirname, "dist/"))
- .filename("[name].[hash].js")
- .chunkFilename("[name].[hash].js")
+ .filename("[name].[contenthash].js")
+ .chunkFilename("[name].[contenthash].js")
.publicPath("/");
config.plugin("html").use(HtmlWebpackPlugin, [
|