LoginSignup
30

More than 5 years have passed since last update.

webpackをなんかかっこよくする

Last updated at Posted at 2016-08-16

Before

スクリーンショット 2016-08-16 16.40.33.png

webpack-dashboard

  • (既にwebpackが使える環境があることが前提です)
  • npm install -D webpack-dashboard (執筆時v0.1.6)
  • webpack.config.js等に下記を追加
// webpack.config.js
var DashboardPlugin = require('webpack-dashboard/plugin');

plugins: [
  new DashboardPlugin()
], 


// package.json
"scripts": {
  // 元のコマンドの先頭に `webpack-dashboard --` を追加
  // "watch": "webpack -d --watch"
  // "start": "webpack-dev-server -d --hot --inline"
  "watch": "webpack-dashboard -- webpack -d --watch",
  "start": "webpack-dashboard -- webpack-dev-server -d --hot --inline",
}

After

スクリーンショット 2016-08-16 16.41.37.png

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
30