Skip to content

Commit

Permalink
Shorter export WEBPACK
Browse files Browse the repository at this point in the history
  • Loading branch information
RoCky Wu committed May 8, 2016
1 parent 373dc3f commit 59853a9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
"main": "dist/react-section.min.js",
"scripts": {
"dev": "webpack-dev-server --inline --hot --content-base demo/",
"build": "export WEBPACK=prod && babel-node scripts/build",
"build.demo": "export WEBPACK=demo && webpack",
"build": "WEBPACK=prod babel-node scripts/build",
"build.demo": "WEBPACK=demo webpack",
"test": "nyc ava -v",
"test.watch": "nyc ava -vw",
"test.ui": "nightwatch",
Expand Down
7 changes: 4 additions & 3 deletions webpack.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
const isDemo = process.env.WEBPACK === 'demo'
const isDev = !process.env.WEBPACK
const isProd = process.env.WEBPACK === 'prod'
const webpackEnv = process.env.WEBPACK
const isDemo = webpackEnv === 'demo'
const isDev = !webpackEnv
const isProd = webpackEnv === 'prod'

const webpack = require('webpack')
const ExtractText = require('extract-text-webpack-plugin')
Expand Down

0 comments on commit 59853a9

Please sign in to comment.