Skip to content

Commit

Permalink
Merge branch 'greenkeeper/webpack-4.0.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisguttandin committed Feb 25, 2018
2 parents 6ee9d24 + 4e5ced4 commit d01998f
Show file tree
Hide file tree
Showing 5 changed files with 949 additions and 640 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-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 d01998f

Please sign in to comment.