mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-30 09:27:13 +00:00
16 lines
428 B
JavaScript
16 lines
428 B
JavaScript
const webpack = require('webpack')
|
|
const path = require('path')
|
|
const nxtConf = require('../nuxt.config')
|
|
|
|
module.exports = (sBaseConfig, configType, defaultConfig) => {
|
|
const srcDir = `../${nxtConf.srcDir||''}`
|
|
const rootDir = `../${nxtConf.rootDir||''}`
|
|
|
|
Object.assign(defaultConfig.resolve.alias, {
|
|
'~~': path.resolve(__dirname, rootDir),
|
|
'~': path.resolve(__dirname, srcDir)
|
|
})
|
|
|
|
return defaultConfig
|
|
}
|