blob: 3e39cfce3c10ee77ef592cfd486c7a5bf3f6259a [file] [log] [blame]
// *******************************************************************************
// * Copyright (c) 2016 Gigatronik Ingolstadt GmbH
// * All rights reserved. This program and the accompanying materials
// * are made available under the terms of the Eclipse Public License v1.0
// * which accompanies this distribution, and is available at
// * http://www.eclipse.org/legal/epl-v10.html
// *
// * Contributors:
// * Dennis Schroeder - initial implementation
// *******************************************************************************
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: 'cheap-module-eval-source-map',
context: helpers.root(''),
output: {
path: helpers.root('dist'),
publicPath: 'http://localhost:9090/dist/',
filename: '[name].js',
chunkFilename: '[id].chunk.js'
},
plugins: [
new ExtractTextPlugin('[name].css')
],
devServer: {
historyApiFallback: true,
stats: 'minimal'
}
});