From 376220adab9c0ecbcd9ce389a4f8678097befc2a Mon Sep 17 00:00:00 2001 From: Eli Perelman Date: Wed, 15 Feb 2017 15:38:10 -0600 Subject: [PATCH] Missing BUILD in web and node --- packages/neutrino-preset-node/src/index.js | 3 ++- packages/neutrino-preset-web/src/index.js | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/packages/neutrino-preset-node/src/index.js b/packages/neutrino-preset-node/src/index.js index 3977f24..c852890 100644 --- a/packages/neutrino-preset-node/src/index.js +++ b/packages/neutrino-preset-node/src/index.js @@ -10,6 +10,7 @@ const ProgressBarPlugin = require('progress-bar-webpack-plugin'); const CWD = process.cwd(); const SRC = path.join(CWD, 'src'); +const BUILD = path.join(CWD, 'build'); const TEST = path.join(CWD, 'test'); const MODULES = path.join(__dirname, '../node_modules'); @@ -29,7 +30,7 @@ module.exports = neutrino => { .add(path.join(SRC, 'index.js')) .end() .output - .path(path.join(process.cwd(), 'build')) + .path(BUILD) .filename('[name].js') .libraryTarget('commonjs2') .chunkFilename('[id].[chunkhash].js') diff --git a/packages/neutrino-preset-web/src/index.js b/packages/neutrino-preset-web/src/index.js index 0cdcbc7..f1279f9 100644 --- a/packages/neutrino-preset-web/src/index.js +++ b/packages/neutrino-preset-web/src/index.js @@ -11,6 +11,7 @@ const ProgressBarPlugin = require('progress-bar-webpack-plugin'); const CWD = process.cwd(); const SRC = path.join(CWD, 'src'); +const BUILD = path.join(CWD, 'build'); const TEST = path.join(CWD, 'test'); const PKG = require(path.join(CWD, 'package.json')); const FILE_LOADER = require.resolve('file-loader'); @@ -28,7 +29,7 @@ module.exports = ({ config }) => { .add(path.join(SRC, 'index.js')) .end() .output - .path(path.join(process.cwd(), 'build')) + .path(BUILD) .publicPath('./') .filename('[name].bundle.js') .chunkFilename('[id].[chunkhash].js')