Skip to content

Commit

Permalink
add webpack-dev-server and webpack-dashboard
Browse files Browse the repository at this point in the history
  • Loading branch information
dolymood committed Oct 25, 2016
1 parent 04171fd commit cbd48f8
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ var path = require('path')
var webpack = require('webpack')
var HtmlWebpackPlugin = require('html-webpack-plugin')
var ExtractTextPlugin = require('extract-text-webpack-plugin')
var DashboardPlugin = require('webpack-dashboard/plugin')
var pkg = require('./package.json')

module.exports = {
Expand Down Expand Up @@ -35,6 +36,7 @@ module.exports = {
formatter: require('eslint-friendly-formatter')
},
plugins: [
new DashboardPlugin(),
new webpack.optimize.OccurenceOrderPlugin(),
new HtmlWebpackPlugin({
filename: 'example.html',
Expand All @@ -43,5 +45,8 @@ module.exports = {
}),
new ExtractTextPlugin(pkg.name + '.min.css')
],
devtool: false
devServer: {
contentBase: 'dev'
},
devtool: 'source-map'
}

0 comments on commit cbd48f8

Please sign in to comment.