fix typo.

This commit is contained in:
Pooya Parsa 2018-02-26 16:45:08 +03:30
parent 8992c1ee36
commit cfe1df2115

View File

@ -23,12 +23,18 @@ module.exports = function webpackBaseConfig({ name, isServer }) {
// Used by vue-loader so we can use in templates
// with <img src="~/assets/nuxt.png"/>
configAlias[this.options.dir.assets] = join(this.options.srcDir, this.options.dir.assets)
configAlias[this.options.dir.static] = join(this.options.srcDir, this.options.dir.static)
configAlias[this.options.dir.assets] = join(
this.options.srcDir,
this.options.dir.assets
)
configAlias[this.options.dir.static] = join(
this.options.srcDir,
this.options.dir.static
)
const config = {
name,
mode: this.options.dev ? 'development' : 'prodoction',
mode: this.options.dev ? 'development' : 'production',
entry: {
app: null
},
@ -47,12 +53,15 @@ module.exports = function webpackBaseConfig({ name, isServer }) {
},
resolve: {
extensions: ['.js', '.json', '.vue', '.jsx'],
alias: Object.assign({
'~': join(this.options.srcDir),
'~~': join(this.options.rootDir),
'@': join(this.options.srcDir),
'@@': join(this.options.rootDir)
}, configAlias),
alias: Object.assign(
{
'~': join(this.options.srcDir),
'~~': join(this.options.rootDir),
'@': join(this.options.srcDir),
'@@': join(this.options.rootDir)
},
configAlias
),
modules: webpackModulesDir
},
resolveLoader: {