This commit is contained in:
parent
2afcd498f3
commit
bad67020cc
15
.vscode/launch.json
vendored
Normal file
15
.vscode/launch.json
vendored
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
{
|
||||||
|
// Use IntelliSense to learn about possible attributes.
|
||||||
|
// Hover to view descriptions of existing attributes.
|
||||||
|
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
|
||||||
|
"version": "0.2.0",
|
||||||
|
"configurations": [
|
||||||
|
{
|
||||||
|
"type": "pwa-chrome",
|
||||||
|
"request": "launch",
|
||||||
|
"name": "Launch Chrome against localhost",
|
||||||
|
"url": "http://localhost:3000",
|
||||||
|
"webRoot": "${workspaceFolder}"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
@ -41,6 +41,13 @@ module.exports = (env, argv) => {
|
|||||||
path: DIST_DIR,
|
path: DIST_DIR,
|
||||||
filename: isProdBuild ? '[name].bundle.[chunkhash].js' : '[name].js',
|
filename: isProdBuild ? '[name].bundle.[chunkhash].js' : '[name].js',
|
||||||
publicPath: PUBLIC_URL, // Used by HtmlWebPackPlugin for asset prefix
|
publicPath: PUBLIC_URL, // Used by HtmlWebPackPlugin for asset prefix
|
||||||
|
devtoolModuleFilenameTemplate: function(info) {
|
||||||
|
if (isProdBuild) {
|
||||||
|
return `webpack:///${info.resourcePath}`;
|
||||||
|
} else {
|
||||||
|
return 'file:///' + encodeURI(info.absoluteResourcePath);
|
||||||
|
}
|
||||||
|
},
|
||||||
},
|
},
|
||||||
module: {
|
module: {
|
||||||
rules: [...extractStyleChunksRule(isProdBuild)],
|
rules: [...extractStyleChunksRule(isProdBuild)],
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user