refactor: folder structure & filename

This commit is contained in:
endiliey 2018-08-01 16:55:53 +08:00
parent 9070fb50ab
commit dbf78c5c14
10 changed files with 79 additions and 74 deletions

View file

@ -2,7 +2,7 @@ const Config = require('webpack-chain');
const path = require('path');
module.exports = function createBaseConfig(props) {
const {outDir, themePath, sourceDir, publicPath} = props;
const {outDir, uiPath, sourceDir, publicPath} = props;
const config = new Config();
const isProd = process.env.NODE_ENV === 'production';
@ -17,7 +17,7 @@ module.exports = function createBaseConfig(props) {
config.resolve
.set('symlinks', true)
.alias.set('@theme', themePath)
.alias.set('@ui', uiPath)
.set('@source', sourceDir)
.set('@generated', path.resolve(__dirname, '../generated'))
.set('@core', path.resolve(__dirname, '../core'))