Skip to content

Commit

Permalink
fix($warnings): change messaging
Browse files Browse the repository at this point in the history
  • Loading branch information
faceyspacey authored Aug 4, 2017
1 parent cc9459c commit c88b294
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions importCss.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@ module.exports = function(chunkName) {
if (process.env.NODE_ENV === 'development') {
if (typeof window === 'undefined' || !window.__CSS_CHUNKS__) {
console.warn(
'[UNIVERSAL-IMPORT] no css chunks hash found at "window.__CSS_CHUNKS__". Make sure you are using: https://www.npmjs.com/package/extract-css-chunks-webpack-plugin .'
'[UNIVERSAL-IMPORT] no css chunks hash found at "window.__CSS_CHUNKS__". Make sure you are using: https://www.npmjs.com/package/extract-css-chunks-webpack-plugin . If you are not serving CSS, disregard this message.'
)
return
}

console.warn(
'[UNIVERSAL-IMPORT] no chunk, ',
chunkName,
', found in "window.__CSS_CHUNKS__"'
', found in "window.__CSS_CHUNKS__". If you are not serving CSS for this chunk, disregard this message.'
)
}

Expand All @@ -36,7 +36,7 @@ module.exports = function(chunkName) {
link.onerror = function() {
link.onerror = link.onload = null // avoid mem leaks in IE.
clearTimeout(timeout)
var message = 'could not load css chunk:${chunkName}'
var message = 'could not load css chunk:' + chunkName
reject(new Error(message))
}

Expand Down

0 comments on commit c88b294

Please sign in to comment.