mirror of
https://github.com/nuxt/nuxt.git
synced 2024-12-01 01:47:11 +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
|
|
}
|