mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-05-12 17:04:57 +00:00
28 lines
686 B
JavaScript
28 lines
686 B
JavaScript
const webpackMerge = require('webpack-merge');
|
|
const ExtractTextPlugin = require('extract-text-webpack-plugin');
|
|
const commonConfig = require('./webpack.common.js');
|
|
const helpers = require('./helpers');
|
|
|
|
module.exports = webpackMerge(commonConfig, {
|
|
devtool: 'cheap-module-eval-source-map',
|
|
|
|
output: {
|
|
path: helpers.root('dist'),
|
|
filename: '[name].js',
|
|
chunkFilename: '[id].chunk.js'
|
|
},
|
|
|
|
plugins: [
|
|
new ExtractTextPlugin('[name].css')
|
|
],
|
|
|
|
devServer: {
|
|
contentBase: helpers.root('dist'),
|
|
compress: true,
|
|
port: 3000,
|
|
historyApiFallback: true,
|
|
host: '0.0.0.0',
|
|
inline: true
|
|
}
|
|
});
|