fix webpack config formatting

This commit is contained in:
Denys Vuika 2016-12-16 12:18:32 +00:00
parent 882b19930e
commit 12b361acc8

View File

@ -54,7 +54,7 @@ module.exports = {
],
loader: 'source-map-loader'
}
],
],
loaders: [
{
test: /\.ts$/,
@ -68,52 +68,50 @@ module.exports = {
],
loaders: ['angular2-template-loader', 'source-map-loader', 'systemjs-loader']
},
{
{
test: /\.html$/,
exclude: alfrescoLibs,
loader: 'html'
},
{
},
{
test: /\.html$/,
include: alfrescoLibs,
loader: 'html',
query: {
interpolate: true
}
},
{
}
},
{
test: /\.(png|jpe?g|gif|svg|woff|woff2|ttf|eot|ico)$/,
loader: 'file?name=assets/[name].[hash].[ext]'
},
{
},
{
test: /\.css$/,
exclude: [
helpers.root('app'),
...alfrescoLibs
],
],
loader: ExtractTextPlugin.extract('style', 'css?sourceMap')
},
{
},
{
test: /\.css$/,
include: [
helpers.root('app'),
...alfrescoLibs
],
],
loader: 'raw'
}
]
},
}
]
},
plugins: [
plugins: [
new webpack.ProvidePlugin({
'dialogPolyfill': 'dialog-polyfill/dialog-polyfill'
}),
new CopyWebpackPlugin([
{
from: 'versions.json'
}
{ from: 'versions.json' }
]),
new webpack.optimize.CommonsChunkPlugin({
@ -123,10 +121,10 @@ plugins: [
new HtmlWebpackPlugin({
template: 'index.html'
})
],
],
node: {
fs: 'empty',
module: false
}
}
};