Skip to content
This repository has been archived by the owner on Feb 18, 2024. It is now read-only.

Commit

Permalink
Missing BUILD in web and node
Browse files Browse the repository at this point in the history
  • Loading branch information
eliperelman committed Feb 15, 2017
1 parent 4f1655d commit 376220a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion packages/neutrino-preset-node/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');

Expand All @@ -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')
Expand Down
3 changes: 2 additions & 1 deletion packages/neutrino-preset-web/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand All @@ -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')
Expand Down

0 comments on commit 376220a

Please sign in to comment.