Skip to content

Instantly share code, notes, and snippets.

@neilcummings
Created May 7, 2017 11:08
Show Gist options
  • Save neilcummings/9493597711f1426cc489a5b17d58a671 to your computer and use it in GitHub Desktop.
Save neilcummings/9493597711f1426cc489a5b17d58a671 to your computer and use it in GitHub Desktop.
SharePointAddinAngular - webpack.dev.js
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