mirror of
https://github.com/TandoorRecipes/recipes.git
synced 2026-01-01 04:10:06 -05:00
fixed webpack public path
This commit is contained in:
@@ -51,7 +51,7 @@
|
||||
"eslint-plugin-vue": "^7.10.0",
|
||||
"typescript": "~4.4.3",
|
||||
"vue-cli-plugin-i18n": "^2.1.1",
|
||||
"webpack-bundle-tracker": "1.3.0",
|
||||
"webpack-bundle-tracker": "1.4.0",
|
||||
"workbox-expiration": "^6.3.0",
|
||||
"workbox-navigation-preload": "^6.0.2",
|
||||
"workbox-precaching": "^6.3.0",
|
||||
|
||||
@@ -140,7 +140,9 @@ export default {
|
||||
},
|
||||
computed: {
|
||||
headerComponent() {
|
||||
return () => import(`@/components/${this.header_component_name}`)
|
||||
// TODO this leads webpack to create one .js file for each component in this folder because at runtime any one of them could be requested
|
||||
// TODO this is not necessarily bad but maybe there are better options to do this
|
||||
return () => import(/* webpackChunkName: "header-component" */ `@/components/${this.header_component_name}`)
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
|
||||
@@ -48,7 +48,7 @@ module.exports = {
|
||||
filenameHashing: false,
|
||||
productionSourceMap: false,
|
||||
publicPath: process.env.NODE_ENV === 'production'
|
||||
? ''
|
||||
? '/static/vue'
|
||||
: 'http://localhost:8080/',
|
||||
outputDir: '../cookbook/static/vue/',
|
||||
runtimeCompiler: true,
|
||||
|
||||
Reference in New Issue
Block a user