Skip to content

Commit 1791796

Browse files
committed
added testcase for issue webpack-contrib#120
1 parent dd43832 commit 1791796

File tree

13 files changed

+68
-0
lines changed

13 files changed

+68
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
default-styles
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
require('../router');
2+
require('../routes/contact');
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
require('../router');
2+
require('../routes/homepage');
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
webpackJsonp([0],{
2+
3+
/***/ 2:
4+
/***/ (function(module, exports, __webpack_require__) {
5+
6+
__webpack_require__(7);
7+
8+
9+
/***/ }),
10+
11+
/***/ 7:
12+
/***/ (function(module, exports) {
13+
14+
module.exports = "styles-homepage\n"
15+
16+
/***/ })
17+
18+
});
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
webpackJsonp([1],{
2+
3+
/***/ 1:
4+
/***/ (function(module, exports, __webpack_require__) {
5+
6+
__webpack_require__(6);
7+
8+
9+
/***/ }),
10+
11+
/***/ 6:
12+
/***/ (function(module, exports) {
13+
14+
module.exports = "styles-contact\n"
15+
16+
/***/ })
17+
18+
});
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
default-styles
2+
styles-contact
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
default-styles
2+
styles-homepage
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
require('./default-styles.txt');
2+
module.export = function (route) {
3+
return import(/* webpackChunkName: "route-[request]" */ './routes/' + route + 'index.js').then(function (route) {
4+
return route;
5+
});
6+
};
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
require('./styles.txt');
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
styles-contact
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
require('./styles.txt');
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
styles-homepage
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
var ExtractTextPlugin = require("../../../");
2+
module.exports = {
3+
entry: {
4+
'homepage': "./entries/homepage.js",
5+
'contact': "./entries/contact.js"
6+
},
7+
plugins: [
8+
new ExtractTextPlugin({
9+
filename: '[name].css',
10+
allChunks: false
11+
})
12+
]
13+
};

0 commit comments

Comments
 (0)