Commit 9630b26e authored by Jeff Avallone's avatar Jeff Avallone

Using BUILD_PATH environment variable with webpack

parent 9aaf1827
var path = require('path'),
_ = require('lodash'),
buildRoot = process.env.BUILD_PATH || './build',
buildRoot = process.env.BUILD_PATH || path.join(__dirname, './build'),
buildPath = _.bind(path.join, path, buildRoot);
module.exports = {
......
var webpack = require('webpack'),
bourbon = require('bourbon');
bourbon = require('bourbon'),
config = require('./config');
module.exports = {
devtool: 'source-map',
......@@ -9,7 +10,7 @@ module.exports = {
'__discard__/css/svg.css.js': './src/sass/svg.scss'
},
output: {
path: __dirname + '/build',
path: config.buildRoot,
filename: '[name]'
},
plugins: [
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment