Skip to content
This repository has been archived by the owner on Sep 27, 2020. It is now read-only.

Commit

Permalink
cross-env
Browse files Browse the repository at this point in the history
  • Loading branch information
mrTimofey committed Jul 4, 2017
1 parent 427a230 commit 99f8517
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions commands/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,11 +92,11 @@ module.exports = function(_options, home) {

[{
files: config.js,
command: 'NODE_ENV=production ' + __dirname + '/../node_modules/.bin/browserify ' + config.sourcePath + '/js/{input} ' +
command: __dirname + '/../node_modules/.bin/cross-env NODE_ENV=production ' + __dirname + '/../node_modules/.bin/browserify ' + config.sourcePath + '/js/{input} ' +
helpers.browserifyArgs.join(' ') + ' -o build/compiled/{output}.js'
}, {
files: config.styles,
command: 'NODE_ENV=production ' + __dirname + '/../node_modules/.bin/stylus ' + config.sourcePath + '/styles/{input} ' +
command: __dirname + '/../node_modules/.bin/cross-env NODE_ENV=production ' + __dirname + '/../node_modules/.bin/stylus ' + config.sourcePath + '/styles/{input} ' +
helpers.stylusArgs.join(' ') + ' -o build/compiled/{output}.css'
}].forEach(build => {
const command = build.command;
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
"babel-preset-latest": "*",
"babelify": "*",
"browserify": "^13.1.0",
"cross-env": "^5.0.1",
"express": "^4.14.0",
"jstransformer-stylus": "*",
"kouto-swiss": "*",
Expand Down

0 comments on commit 99f8517

Please sign in to comment.