-
-
Notifications
You must be signed in to change notification settings - Fork 6.3k
Closed
Labels
cannot reproduceWe cannot reproduce the problem with the given information. More env information needed.We cannot reproduce the problem with the given information. More env information needed.
Description
Version
3.0.0-rc.3
Reproduction link
https://gist.github.com/podlebar/c10cd6e14545ad6f29780b258122a33c
Steps to reproduce
Update all deps to RC 3, run 'npm run build' or 'yarn build'.
packacke dev deps should be like:
"devDependencies": {
"@vue/cli-plugin-eslint": "^3.0.0-rc.3",
"@vue/cli-plugin-pwa": "^3.0.0-rc.3",
"@vue/cli-service": "^3.0.0-rc.3",
"@vue/eslint-config-prettier": "^3.0.0-rc.3",
"node-sass": "^4.9.0",
"sass-loader": "^7.0.1",
"vue-template-compiler": "^2.5.16"
},
vue.config.js
module.exports = {
pwa: {
name: 'xxx',
themeColor: '#3c3c4c',
appleMobileWebAppCapable: 'yes',
appleMobileWebAppStatusBarStyle: 'black',
swDest: 'dist/sw.js',
workboxPluginMode: 'InjectManifest',
workboxOptions: {
swSrc: 'dev/sw.js'
}
},
baseUrl: '',
outputDir: 'dist',
assetsDir: 'assets',
runtimeCompiler: false,
productionSourceMap: false,
parallel: true,
css: {
extract: true,
sourceMap: true,
modules: true
},
lintOnSave: true
}
What is expected?
output should be somehow like:
dist/js/chunk-vendors.81a28aea.js 274.86 kb 71.06 kb
dist/js/app.314cd380.js 8.86 kb 3.42 kb
dist/precache-manifest.2419737b5bfdcdd 0.46 kb 0.22 kb
5de20cb9b91a848a3.js
dist/sw.js 0.15 kb 0.14 kb
dist/css/chunk-vendors.271358e2.css 14.13 kb 2.72 kb
dist/css/app.2973a23a.css
also no service worker is created nor the manifest file.
What is actually happening?
output is:
dist/app.js 1302.84 kb 206.43 kb
It seems that the RS 3 update changes how Webpack build the production build.
I tried different settings and none of them worked. Also tried re-configure via VUE UI but no affect on production build.
Inspection Webpack output from VUE UI: https://gist.github.com/podlebar/c10cd6e14545ad6f29780b258122a33c
'npm run serve' also throws a error:
Uncaught Error: [HMR] Hot Module Replacement is disabled.
Metadata
Metadata
Assignees
Labels
cannot reproduceWe cannot reproduce the problem with the given information. More env information needed.We cannot reproduce the problem with the given information. More env information needed.