Skip to content
This repository was archived by the owner on Oct 9, 2020. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions css-plugin-base.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ CSSPluginBase.prototype.listAssets = function(loads, opts) {
*/
// NB hot reloading support here
CSSPluginBase.prototype.instantiate = function(load) {
if (this.builder)
return;
if (this.builder || typeof document === 'undefined')
return;

var style = document.createElement('style');
style.type = 'text/css';
Expand Down
4 changes: 1 addition & 3 deletions test/bundle.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,4 @@ System.registerDynamic("test/data/test.css!css.js", [], false, function ($__requ
(function ($__global) {})(this);

return _retrieveGlobal();
});
(function(c){if (typeof document == 'undefined') return; var d=document,a='appendChild',i='styleSheet',s=d.createElement('style');s.type='text/css';d.getElementsByTagName('head')[0][a](s);s[a](d.createTextNode(c));})
("@import \"./dep.css\";body{background-color:red;background-image:url(test/data/x.png)}\n/*# sourceMappingURL=__.css.map */");
});