Skip to content
This repository was archived by the owner on Jul 20, 2024. It is now read-only.

Commit 769e594

Browse files
author
Steve Higgs
committed
upgrade to typescript 2.8.3 and webpack 4
1 parent 6717c54 commit 769e594

File tree

5 files changed

+575
-555
lines changed

5 files changed

+575
-555
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 10.0.0
2+
3+
* upgrade to typescript 2.8.3 and webpack 4
4+
15
## 9.0.0
26

37
* upgrade to typescript 2.6.2 as well as other deps. As we have some new rules in the default linting set we still regard this as a breaking change

package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "gulp-webpack-typescript-pipeline",
3-
"version": "9.0.1",
3+
"version": "10.0.0",
44
"description": "easy transpiling and bundling of typescript back to es5",
55
"main": "index.js",
66
"engines": {
@@ -18,11 +18,11 @@
1818
"dependencies": {
1919
"gulp": "^3.9.1",
2020
"gulp-util": "^3.0.8",
21-
"ts-loader": "^3.3.0",
21+
"ts-loader": "^4.2.0",
2222
"tslint": "^5.9.1",
23-
"tslint-loader": "^3.5.3",
24-
"typescript": "^2.6.2",
25-
"webpack": "^3.10.0",
26-
"webpack-node-externals": "^1.6.0"
23+
"tslint-loader": "^3.6.0",
24+
"typescript": "^2.8.3",
25+
"webpack": "^4.6.0",
26+
"webpack-node-externals": "^1.7.2"
2727
}
2828
}

webpack.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ module.exports = (options) => {
5454

5555
const config = {
5656
cache: true,
57+
mode: 'development',
5758
resolve: {
5859
modules: [
5960
'node_modules',

webpack.config.release.js

Lines changed: 6 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -5,37 +5,13 @@ const commonConfig = require('./webpack.config');
55
module.exports = (options) => {
66
const releaseConfig = Object.create(commonConfig(options));
77
releaseConfig.devtool = 'sourcemap';
8-
releaseConfig.plugins = releaseConfig.plugins.concat(
9-
new webpack.DefinePlugin({
10-
'process.env': {
11-
'NODE_ENV': JSON.stringify('production')
12-
}
13-
}),
14-
new webpack.LoaderOptionsPlugin({
15-
minimize: true,
16-
debug: false
17-
}),
18-
new webpack.optimize.ModuleConcatenationPlugin()
19-
);
8+
releaseConfig.mode = 'production';
209

21-
if (!options.isNodeLibrary) {
22-
releaseConfig.plugins.push(new webpack.optimize.UglifyJsPlugin({
23-
compress: {
24-
warnings: false,
25-
screw_ie8: true,
26-
conditionals: true,
27-
unused: true,
28-
comparisons: true,
29-
sequences: true,
30-
dead_code: true,
31-
evaluate: true,
32-
if_return: true,
33-
join_vars: true,
34-
},
35-
output: {
36-
comments: false
37-
}
38-
}));
10+
if (options.isNodeLibrary) {
11+
// dont want to minimise library code
12+
releaseConfig.optimization = {
13+
minimize: false
14+
}
3915
}
4016

4117
return releaseConfig;

0 commit comments

Comments
 (0)