Skip to content

Commit 20f59ca

Browse files
committed
feat: add webpack 4 support
1 parent 325610c commit 20f59ca

20 files changed

+7282
-2183
lines changed

.nycrc

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
{
22
"check-coverage": false,
33
"per-file": true,
4-
"statements": 94,
5-
"branches": 83,
6-
"functions": 90,
7-
"lines": 90,
4+
"statements": 85,
5+
"branches": 75,
6+
"functions": 85,
7+
"lines": 85,
88
"reporter": [
99
"lcov",
1010
"text",

.travis.yml

+4-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ sudo: false
22
language: node_js
33

44
node_js:
5-
- 7.6
5+
- 8.10.0
66

77
branches:
88
except:
@@ -13,10 +13,12 @@ env:
1313
- ISTANBUL_COVERAGE: yes
1414

1515
script:
16-
- yarn bootstrap
16+
- yarn bootstrap --env webpack-2
1717
- yarn lint
1818
- yarn test:webpack-1
1919
- yarn test:webpack-2
20+
- yarn test:webpack-3
21+
- yarn test:webpack-4
2022

2123
after_success:
2224
- yarn upload-coverage

env/webpack-1/package.json

+6
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,17 @@
22
"private": true,
33
"devDependencies": {
44
"extract-text-webpack-plugin": "1",
5+
"file-loader": "^0.11.1",
6+
"html-loader": "^0.4.5",
7+
"html-webpack-plugin": "2.28.0",
58
"webpack": "1"
69
},
710
"packagesToLink": [
811
"enhanced-resolve",
912
"extract-text-webpack-plugin",
13+
"file-loader",
14+
"html-loader",
15+
"html-webpack-plugin",
1016
"webpack"
1117
]
1218
}

0 commit comments

Comments
 (0)