mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-05 21:53:56 +00:00
15 lines
441 B
JavaScript
15 lines
441 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
|
|
} |