Skip to content

Commit

Permalink
build(config): update config for webpack v4
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisguttandin committed Feb 25, 2018
1 parent 5ed48ea commit 4ff5ef7
Show file tree
Hide file tree
Showing 6 changed files with 220 additions and 96 deletions.
9 changes: 1 addition & 8 deletions config/grunt/webpack.js
@@ -1,11 +1,11 @@
const { resolve } = require('path');
const { optimize: { UglifyJsPlugin } } = require('webpack');

module.exports = {
default: {
entry: {
worker: './build/es2015/module.js'
},
mode: 'production',
module: {
rules: [ {
exclude: /node_modules\/(?!dashify)/,
Expand Down Expand Up @@ -37,13 +37,6 @@ module.exports = {
filename: '[name].min.js',
path: resolve('build/es5')
},
plugins: [
new UglifyJsPlugin({
output: {
comments: false
}
})
],
target: 'webworker'
}
};
11 changes: 6 additions & 5 deletions config/karma/config-expectation.js
Expand Up @@ -33,13 +33,14 @@ module.exports = (config) => {
},

webpack: {
mode: 'development',
module: {
loaders: [
{
loader: 'ts-loader',
test: /\.ts?$/
rules: [ {
test: /\.ts?$/,
use: {
loader: 'ts-loader'
}
]
} ]
},
resolve: {
extensions: [ '.js', '.ts' ]
Expand Down
11 changes: 6 additions & 5 deletions config/karma/config-integration.js
Expand Up @@ -33,13 +33,14 @@ module.exports = (config) => {
},

webpack: {
mode: 'development',
module: {
loaders: [
{
loader: 'ts-loader',
test: /\.ts?$/
rules: [ {
test: /\.ts?$/,
use: {
loader: 'ts-loader'
}
]
} ]
},
resolve: {
extensions: [ '.js', '.ts' ]
Expand Down
11 changes: 6 additions & 5 deletions config/karma/config-unit.js
Expand Up @@ -59,13 +59,14 @@ module.exports = (config) => {
},

webpack: {
mode: 'development',
module: {
loaders: [
{
loader: 'ts-loader',
test: /\.ts?$/
rules: [ {
test: /\.ts?$/,
use: {
loader: 'ts-loader'
}
]
} ]
},
resolve: {
extensions: [ '.js', '.ts' ]
Expand Down

0 comments on commit 4ff5ef7

Please sign in to comment.