mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-27 08:02:01 +00:00
fix typo.
This commit is contained in:
parent
8992c1ee36
commit
cfe1df2115
@ -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: {
|
||||
|
Loading…
Reference in New Issue
Block a user