mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-24 22:55:13 +00:00
15 lines
396 B
JavaScript
15 lines
396 B
JavaScript
const path = require('path')
|
|
const nuxtConf = require('../nuxt.config')
|
|
|
|
module.exports = (sBaseConfig, configType, defaultConfig) => {
|
|
const srcDir = `../${nuxtConf.srcDir || ''}`
|
|
const rootDir = `../${nuxtConf.rootDir || ''}`
|
|
|
|
Object.assign(defaultConfig.resolve.alias, {
|
|
'~~': path.resolve(__dirname, rootDir),
|
|
'~': path.resolve(__dirname, srcDir)
|
|
})
|
|
|
|
return defaultConfig
|
|
}
|