Skip to content

Commit

Permalink
Merge pull request #8 from satazor/cleanup
Browse files Browse the repository at this point in the history
Cleanup whitespaces and make it pass with eslint
  • Loading branch information
faceyspacey committed May 7, 2017
2 parents 11532b4 + 2c4ee94 commit 2f97426
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
3 changes: 2 additions & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"env": {
"node": true
"node": true,
"es6": true,
},
"rules": {
"strict": 0,
Expand Down
2 changes: 1 addition & 1 deletion hotModuleReplacement.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ module.exports = function(publicPath, outputFilename) {

if (oldChunk === newChunk) {
// date insures sheets update when [contenthash] is not used in file names
var url = newHref + '?' + (+new Date);
var url = newHref + '?' + (+new Date);
styleSheets[i].href = url;
console.log('[HMR]', 'Reload css: ', url);
break;
Expand Down
3 changes: 1 addition & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ function getOrder(a, b) {

function ExtractTextPlugin(options) {
options = options || {}

if(arguments.length > 1) {
throw new Error("Breaking change: ExtractTextPlugin now only takes a single argument. Either an options " +
"object *or* the name of the result file.\n" +
Expand Down Expand Up @@ -390,6 +390,5 @@ ExtractTextPlugin.prototype.apply = function(compiler) {
})
callback()
}.bind(this));

}.bind(this));
};

0 comments on commit 2f97426

Please sign in to comment.