Created
May 7, 2017 11:08
-
-
Save neilcummings/9493597711f1426cc489a5b17d58a671 to your computer and use it in GitHub Desktop.
SharePointAddinAngular - webpack.dev.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var webpackMerge = require('webpack-merge'); | |
var ExtractTextPlugin = require('extract-text-webpack-plugin'); | |
var commonConfig = require('./webpack.common.js'); | |
var helpers = require('./helpers'); | |
module.exports = webpackMerge(commonConfig, { | |
devtool: 'source-map', | |
output: { | |
path: helpers.root('app'), | |
publicPath: '', | |
filename: '[name].js', | |
chunkFilename: '[id].chunk.js' | |
}, | |
plugins: [ | |
new ExtractTextPlugin('[name].css') | |
], | |
devServer: { | |
historyApiFallback: true, | |
stats: 'minimal' | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment