Skip to content

Commit

Permalink
fix($production): change importCss.js to compile in production
Browse files Browse the repository at this point in the history
  • Loading branch information
faceyspacey committed Jul 7, 2017
1 parent 6e4cdda commit fce864c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions importCss.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,13 @@ module.exports = function(chunkName) {
link.rel = 'stylesheet'
link.timeout = 30000

return new Promise((resolve, reject) => {
return new Promise(function(resolve, reject) {
var timeout

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 fce864c

Please sign in to comment.