revert back ~static and ~assets again

#1241
This commit is contained in:
Pooya Parsa 2017-08-01 15:09:23 +04:30
parent 5aa4120c3d
commit 1f85b2dd13

View File

@ -51,8 +51,10 @@ export default function webpackBaseConfig ({ isClient, isServer }) {
'~~': join(this.options.rootDir), '~~': join(this.options.rootDir),
'@': join(this.options.srcDir), '@': join(this.options.srcDir),
'@@': join(this.options.rootDir), '@@': join(this.options.rootDir),
'static': join(this.options.srcDir, 'static'), // use in template with <img src="~static/nuxt.png" /> 'static': join(this.options.srcDir, 'static'),
'assets': join(this.options.srcDir, 'assets') // use in template with <img src="~assets/nuxt.png" /> '~static': join(this.options.srcDir, 'static'),
'assets': join(this.options.srcDir, 'assets'),
'~assets': join(this.options.srcDir, 'assets')
}, },
modules: [ modules: [
this.options.modulesDir, this.options.modulesDir,