vue template support ~/assets and ~/static

(So that Vue's <template> and <style> tags support ~/assets and ~/static
)[https://github.com/nuxt/nuxt.js/issues/1241]
This commit is contained in:
hua 2017-08-02 14:22:49 +08:00
parent f22c16a7a4
commit 18995ac509

View File

@ -53,9 +53,9 @@ export default function webpackBaseConfig ({ isClient, isServer }) {
'@': join(this.options.srcDir),
'@@': join(this.options.rootDir),
'static': join(this.options.srcDir, 'static'),
'~static': join(this.options.srcDir, 'static'),
'/static': join(this.options.srcDir, 'static'),
'assets': join(this.options.srcDir, 'assets'),
'~assets': join(this.options.srcDir, 'assets')
'/assets': join(this.options.srcDir, 'assets')
},
modules: [
this.options.modulesDir,