forked from webpack-contrib/extract-text-webpack-plugin
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixed async loading (keep original style loader in async chunks)
- Loading branch information
Showing
5 changed files
with
107 additions
and
29 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,62 @@ | ||
webpackJsonp([0],{ | ||
|
||
/***/ 3: | ||
/***/ 11: | ||
/***/ (function(module, exports, __webpack_require__) { | ||
|
||
__webpack_require__(8); | ||
|
||
modules.export = function() { | ||
return 'Route Homepage'; | ||
}; | ||
|
||
// style-loader: Adds some css to the DOM by adding a <style> tag | ||
|
||
// load the styles | ||
var content = __webpack_require__(13); | ||
if(typeof content === 'string') content = [[module.i, content, '']]; | ||
// Prepare cssTransformation | ||
var transform; | ||
|
||
var options = {} | ||
options.transform = transform | ||
// add the styles to the DOM | ||
var update = __webpack_require__(1)(content, options); | ||
if(content.locals) module.exports = content.locals; | ||
// Hot Module Replacement | ||
if(false) { | ||
// When the styles change, update the <style> tags | ||
if(!content.locals) { | ||
module.hot.accept("!!../../../../../node_modules/css-loader/index.js??ref--0-2!./styles.css", function() { | ||
var newContent = require("!!../../../../../node_modules/css-loader/index.js??ref--0-2!./styles.css"); | ||
if(typeof newContent === 'string') newContent = [[module.id, newContent, '']]; | ||
update(newContent); | ||
}); | ||
} | ||
// When the module is disposed, remove the <style> tags | ||
module.hot.dispose(function() { update(); }); | ||
} | ||
|
||
/***/ }), | ||
|
||
/***/ 8: | ||
/***/ 13: | ||
/***/ (function(module, exports, __webpack_require__) { | ||
|
||
exports = module.exports = __webpack_require__(0)(false); | ||
// imports | ||
|
||
|
||
// module | ||
exports.push([module.i, ".homepage {\n\tcolor: black;\n}\n", ""]); | ||
exports.push([module.i, ".homepage {\n\tcolor: yellow;\n}\n", ""]); | ||
|
||
// exports | ||
|
||
|
||
/***/ }), | ||
|
||
/***/ 4: | ||
/***/ (function(module, exports, __webpack_require__) { | ||
|
||
__webpack_require__(11); | ||
|
||
modules.export = function() { | ||
return 'Route 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
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 |
---|---|---|
|
@@ -2,5 +2,5 @@ body { | |
background: red; | ||
} | ||
.homepage { | ||
color: black; | ||
color: yellow; | ||
} |
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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
.homepage { | ||
color: black; | ||
color: yellow; | ||
} |