Skip to content

Commit

Permalink
add webpack-dashboard, fixes #138
Browse files Browse the repository at this point in the history
  • Loading branch information
phra committed Aug 24, 2016
1 parent 93ff9b4 commit 562a045
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"clean-start": "npm run clean-install && npm start",
"watch": "webpack --watch --progress --profile",
"build": "rimraf dist && webpack --progress --profile --bail",
"server": "webpack-dev-server --inline --progress --port 8080",
"server": "webpack-dashboard -- webpack-dev-server --inline --progress --port 8080",
"webdriver-update": "webdriver-manager update",
"webdriver-start": "webdriver-manager start",
"lint": "tslint --force \"src/**/*.ts\"",
Expand Down Expand Up @@ -82,6 +82,7 @@
"typings": "^1.0.4",
"url-loader": "^0.5.6",
"webpack": "^1.12.13",
"webpack-dashboard": "^0.1.8",
"webpack-dev-server": "^1.14.1"
}
}
5 changes: 5 additions & 0 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ var autoprefixer = require('autoprefixer');
var HtmlWebpackPlugin = require('html-webpack-plugin');
var ExtractTextPlugin = require('extract-text-webpack-plugin');
var CopyWebpackPlugin = require('copy-webpack-plugin');
var DashboardPlugin = require('webpack-dashboard/plugin');

/**
* Env
Expand Down Expand Up @@ -164,6 +165,10 @@ module.exports = function makeWebpackConfig() {
})
];

if (!isTest && !isProd) {
config.plugins.push(new DashboardPlugin());
}

if (!isTest) {
config.plugins.push(
// Generate common chunks if necessary
Expand Down

0 comments on commit 562a045

Please sign in to comment.