This repository has been archived by the owner on May 29, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 513
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
commit e2631af Author: David Heidrich <me@bowlingx.com> Date: Mon Jun 19 19:08:13 2017 +0200 removed dead code, cleanup commit d8943d7 Author: David Heidrich <me@bowlingx.com> Date: Mon Jun 19 15:48:51 2017 +0200 restored console log commit 0d7c94a Author: David Heidrich <me@bowlingx.com> Date: Mon Jun 19 00:30:34 2017 +0200 fixed async loading (keep original style loader in async chunks) commit 950d7ef Author: David Heidrich <me@bowlingx.com> Date: Sun Jun 18 15:52:41 2017 +0200 fixed exporting module informations commit 8b97ee5 Author: David Heidrich <me@bowlingx.com> Date: Sun Jun 18 14:27:51 2017 +0200 fixed line length commit 6898aa4 Author: David Heidrich <me@bowlingx.com> Date: Sun Jun 18 14:26:34 2017 +0200 respect all chunks commit bbc93ab Author: David Heidrich <me@bowlingx.com> Date: Sun Jun 18 12:33:09 2017 +0200 adjusted test to be env agnostic commit 3eba627 Author: David Heidrich <me@bowlingx.com> Date: Sun Jun 18 12:25:16 2017 +0200 adjusted tests to use css-loader, added tests for allChunks, remove module from initial chunk commit 09ac8cb Author: David Heidrich <me@bowlingx.com> Date: Sat Jun 17 22:36:09 2017 +0200 adjusted tests, remove module from base if extracted commit 1791796 Author: David Heidrich <me@bowlingx.com> Date: Sat Jun 17 21:23:58 2017 +0200 added testcase for issue #120
- Loading branch information
Showing
29 changed files
with
402 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
body { | ||
background: red; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
require('../router'); | ||
require('../routes/contact'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
require('../router'); | ||
require('../routes/homepage'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
webpackJsonp([0],{ | ||
|
||
/***/ 2: | ||
/***/ (function(module, exports, __webpack_require__) { | ||
|
||
__webpack_require__(7); | ||
|
||
modules.export = function() { | ||
return 'Route Homepage'; | ||
}; | ||
|
||
|
||
/***/ }), | ||
|
||
/***/ 7: | ||
/***/ (function(module, exports) { | ||
|
||
// removed by extract-text-webpack-plugin | ||
|
||
/***/ }) | ||
|
||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
webpackJsonp([1],{ | ||
|
||
/***/ 1: | ||
/***/ (function(module, exports, __webpack_require__) { | ||
|
||
__webpack_require__(6); | ||
|
||
modules.export = function() { | ||
return 'Route Contact'; | ||
}; | ||
|
||
|
||
/***/ }), | ||
|
||
/***/ 6: | ||
/***/ (function(module, exports) { | ||
|
||
// removed by extract-text-webpack-plugin | ||
|
||
/***/ }) | ||
|
||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
body { | ||
background: red; | ||
} | ||
.contact { | ||
color: black; | ||
} | ||
.homepage { | ||
color: black; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
body { | ||
background: red; | ||
} | ||
.contact { | ||
color: black; | ||
} | ||
.homepage { | ||
color: black; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
require('./default-styles.css'); | ||
module.export = function (route) { | ||
return import(/* webpackChunkName: "route-[request]" */ './routes/' + route + 'index.js').then(function (route) { | ||
return route; | ||
}); | ||
}; |
5 changes: 5 additions & 0 deletions
5
test/cases/multiple-entries-all-async/routes/contact/index.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
require('./styles.css'); | ||
|
||
modules.export = function() { | ||
return 'Route Contact'; | ||
}; |
3 changes: 3 additions & 0 deletions
3
test/cases/multiple-entries-all-async/routes/contact/styles.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
.contact { | ||
color: black; | ||
} |
5 changes: 5 additions & 0 deletions
5
test/cases/multiple-entries-all-async/routes/homepage/index.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
require('./styles.css'); | ||
|
||
modules.export = function() { | ||
return 'Route Homepage'; | ||
}; |
3 changes: 3 additions & 0 deletions
3
test/cases/multiple-entries-all-async/routes/homepage/styles.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
.homepage { | ||
color: black; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
var ExtractTextPlugin = require("../../../"); | ||
module.exports = { | ||
entry: { | ||
'homepage': "./entries/homepage.js", | ||
'contact': "./entries/contact.js" | ||
}, | ||
module: { | ||
loaders: [ | ||
{ test: /\.css$/, use: ExtractTextPlugin.extract({ | ||
fallback: "style-loader", | ||
use: { loader: "css-loader", options: { | ||
sourceMap: false | ||
} } | ||
}) } | ||
] | ||
}, | ||
plugins: [ | ||
new ExtractTextPlugin({ | ||
filename: '[name].css', | ||
allChunks: true | ||
}) | ||
] | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
body { | ||
background: red; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
require('../router'); | ||
require('../routes/contact'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
require('../router'); | ||
require('../routes/homepage'); |
Oops, something went wrong.