Updated outdates packages.
Also includes updating webpack configs to support newer versions.
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
const { CleanWebpackPlugin } = require("clean-webpack-plugin");
|
||||
const path = require("path");
|
||||
const webpack = require("webpack");
|
||||
const merge = require("webpack-merge");
|
||||
const { merge } = require("webpack-merge");
|
||||
const HtmlWebpackPlugin = require("html-webpack-plugin");
|
||||
const OptimizeCSSAssetsPlugin = require("optimize-css-assets-webpack-plugin");
|
||||
const MiniCSSExtractPlugin = require("mini-css-extract-plugin");
|
||||
@@ -23,7 +23,7 @@ const webpackConfig = merge(commonConfig(false), {
|
||||
output: {
|
||||
path: helpers.root("public/dist"),
|
||||
publicPath: "/public/dist/",
|
||||
filename: "js/[name].bundle.[hash:7].js"
|
||||
filename: "js/[name].bundle.[fullhash:7].js"
|
||||
},
|
||||
optimization: {
|
||||
splitChunks: {
|
||||
@@ -64,7 +64,7 @@ const webpackConfig = merge(commonConfig(false), {
|
||||
new CleanWebpackPlugin(), // clean output folder
|
||||
new webpack.EnvironmentPlugin(environment),
|
||||
new MiniCSSExtractPlugin({
|
||||
filename: "css/[name].[hash:7].css"
|
||||
filename: "css/[name].[fullhash:7].css"
|
||||
})
|
||||
]
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user