build(static): fix webpack build warngins
This commit is contained in:
@@ -1,8 +1,10 @@
|
||||
{
|
||||
"name": "gallery",
|
||||
"version": "0.4.1",
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
"build": "webpack"
|
||||
"build": "webpack --mode production",
|
||||
"dev": "webpack --watch --mode development"
|
||||
},
|
||||
"author": "shmyga <shmyga.z@gmail.com>",
|
||||
"license": "ISC",
|
||||
|
||||
@@ -28,7 +28,13 @@ const config: webpack.Configuration = {
|
||||
use: [
|
||||
MiniCssExtractPlugin.loader,
|
||||
{ loader: "css-loader", options: { sourceMap: true, url: false } },
|
||||
{ loader: "sass-loader", options: { sourceMap: true } },
|
||||
{
|
||||
loader: "sass-loader",
|
||||
options: {
|
||||
sourceMap: true,
|
||||
sassOptions: { quietDeps: true, silenceDeprecations: ["color-functions", "global-builtin", "import"] },
|
||||
},
|
||||
},
|
||||
],
|
||||
},
|
||||
],
|
||||
@@ -60,6 +66,11 @@ const config: webpack.Configuration = {
|
||||
],
|
||||
}),
|
||||
],
|
||||
performance: {
|
||||
hints: false,
|
||||
maxEntrypointSize: 512000,
|
||||
maxAssetSize: 512000,
|
||||
},
|
||||
};
|
||||
|
||||
export default config;
|
||||
|
||||
Reference in New Issue
Block a user