fix: dev build

This commit is contained in:
cha0s 2020-12-06 06:06:01 -06:00
parent f84f62cc6a
commit 7d11a5a031

View File

@ -13,9 +13,7 @@ const {
module.exports = { module.exports = {
use: [ use: [
(neutrino) => { (neutrino) => {
const root = 'production' === neutrino.config.get('mode') const root = __dirname;
? __dirname
: `${__dirname}/../..`;
neutrino.options.root = fs.realpathSync(root); neutrino.options.root = fs.realpathSync(root);
neutrino.options.source = 'client'; neutrino.options.source = 'client';
neutrino.options.mains.index = 'index'; neutrino.options.mains.index = 'index';