Skip to content

Commit

Permalink
Merge pull request #187 from pablolmiranda/adds-webpack-4-support
Browse files Browse the repository at this point in the history
Adds webpack 4 support
  • Loading branch information
shama authored Jul 17, 2018
2 parents 505ad81 + 00d3096 commit 374259b
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 6 deletions.
3 changes: 1 addition & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
language: node_js
node_js:
- '4'
- '6'
- '8'
- 'node'

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"url": "http://dontkry.com"
},
"engines": {
"node": ">= 0.10.0"
"node": ">= 6.11.5"
},
"scripts": {
"test": "semistandard && node test/test.js"
Expand All @@ -26,15 +26,15 @@
]
},
"dependencies": {
"supports-color": "^5.3.0",
"fancy-log": "^1.3.2",
"lodash.clone": "^4.3.2",
"lodash.some": "^4.2.2",
"memory-fs": "^0.4.1",
"plugin-error": "^1.0.1",
"supports-color": "^5.3.0",
"through": "^2.3.8",
"vinyl": "^2.1.0",
"webpack": "^3.4.1"
"webpack": "^4.7.0"
},
"devDependencies": {
"gulp": "^3.9.0",
Expand Down
8 changes: 7 additions & 1 deletion test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ test('streams output assets', function (t) {
var entry = fs.src('test/fixtures/entry.js');
var stream = webpack({
config: {
mode: 'development',
output: {
filename: 'bundle.js'
}
Expand All @@ -37,6 +38,7 @@ test('multiple entry points', function (t) {
t.plan(3);
var stream = webpack({
config: {
mode: 'development',
entry: {
'one': path.join(base, 'entry.js'),
'two': path.join(base, 'anotherentrypoint.js')
Expand Down Expand Up @@ -67,7 +69,9 @@ test('stream multiple entry points', function (t) {
t.plan(3);
var entries = fs.src(['test/fixtures/entry.js', 'test/fixtures/anotherentrypoint.js']);
var stream = webpack({
config: {},
config: {
mode: 'development'
},
quiet: true
});
stream.on('data', function (file) {
Expand Down Expand Up @@ -113,13 +117,15 @@ test('multi-compile', function (t) {
var stream = webpack({
quiet: true,
config: [{
mode: 'development',
entry: {
'one': path.join(base, 'entry.js')
},
output: {
filename: '[name].bundle.js'
}
}, {
mode: 'development',
entry: {
'two': path.join(base, 'anotherentrypoint.js')
},
Expand Down

0 comments on commit 374259b

Please sign in to comment.