mirror of
https://github.com/nuxt/nuxt.git
synced 2025-02-25 09:59:16 +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
|
// Used by vue-loader so we can use in templates
|
||||||
// with <img src="~/assets/nuxt.png"/>
|
// with <img src="~/assets/nuxt.png"/>
|
||||||
configAlias[this.options.dir.assets] = join(this.options.srcDir, this.options.dir.assets)
|
configAlias[this.options.dir.assets] = join(
|
||||||
configAlias[this.options.dir.static] = join(this.options.srcDir, this.options.dir.static)
|
this.options.srcDir,
|
||||||
|
this.options.dir.assets
|
||||||
|
)
|
||||||
|
configAlias[this.options.dir.static] = join(
|
||||||
|
this.options.srcDir,
|
||||||
|
this.options.dir.static
|
||||||
|
)
|
||||||
|
|
||||||
const config = {
|
const config = {
|
||||||
name,
|
name,
|
||||||
mode: this.options.dev ? 'development' : 'prodoction',
|
mode: this.options.dev ? 'development' : 'production',
|
||||||
entry: {
|
entry: {
|
||||||
app: null
|
app: null
|
||||||
},
|
},
|
||||||
@ -47,12 +53,15 @@ module.exports = function webpackBaseConfig({ name, isServer }) {
|
|||||||
},
|
},
|
||||||
resolve: {
|
resolve: {
|
||||||
extensions: ['.js', '.json', '.vue', '.jsx'],
|
extensions: ['.js', '.json', '.vue', '.jsx'],
|
||||||
alias: Object.assign({
|
alias: Object.assign(
|
||||||
'~': join(this.options.srcDir),
|
{
|
||||||
'~~': join(this.options.rootDir),
|
'~': join(this.options.srcDir),
|
||||||
'@': join(this.options.srcDir),
|
'~~': join(this.options.rootDir),
|
||||||
'@@': join(this.options.rootDir)
|
'@': join(this.options.srcDir),
|
||||||
}, configAlias),
|
'@@': join(this.options.rootDir)
|
||||||
|
},
|
||||||
|
configAlias
|
||||||
|
),
|
||||||
modules: webpackModulesDir
|
modules: webpackModulesDir
|
||||||
},
|
},
|
||||||
resolveLoader: {
|
resolveLoader: {
|
||||||
|
Loading…
Reference in New Issue
Block a user