mzgoddard / hard-source-webpack-plugin

https://www.npmjs.com/package/hard-source-webpack-plugin
ISC License
2.7k stars 160 forks source link

hard-source-webpack-plugin building new cache every time when I save SCSS file! Need help #431

Open 7iomka opened 5 years ago

7iomka commented 5 years ago

Expected Behavior

Previous version (^0.6.4) works fine: https://cl.ly/14b06acd737b

Actual Behavior

Latest version (^0.12.0) works wrong: https://cl.ly/3743960fb615

Is an error being thrown?

Problem: last compilation did not finish saving. building new cache

Steps to Reproduce

Any webpack 3 assembly with sass-loader, extract-text-webpack-plugin, browsersync and hard-source-webpack-plugin have this issue

Operating System, Node, and NPM dependency versions

Windows 10 x64
Node 8.9.3

"devDependencies": {
    "@babel/core": "latest",
    "@babel/node": "latest",
    "@babel/plugin-proposal-object-rest-spread": "latest",
    "@babel/plugin-transform-classes": "latest",
    "@babel/plugin-transform-destructuring": "latest",
    "@babel/plugin-transform-modules-commonjs": "latest",
    "@babel/plugin-transform-object-assign": "latest",
    "@babel/plugin-transform-spread": "latest",
    "@babel/preset-env": "latest",
    "async": "^2.6.0",
    "autoprefixer": "latest",
    "babel-core": "^7.0.0-bridge.0",
    "babel-loader": "latest",
    "babel-plugin-transform-object-rest-spread": "latest",
    "browser-sync": "^2.23.6",
    "cheerio": "^1.0.0-rc.2",
    "chokidar": "latest",
    "clean-webpack-plugin": "latest",
    "copy-webpack-plugin": "^4.5.2",
    "cross-env": "latest",
    "css-loader": "^0.28.11",
    "dedupcss-webpack-plugin": "0.0.3",
    "express": "^4.16.3",
    "extract-text-webpack-plugin": "^3.0.2",
    "file-loader": "^1.1.11",
    "friendly-errors-webpack-plugin": "^1.6.1",
    "get-unused-port-in-list": "^1.0.1",
    "glob": "latest",
    "hard-source-webpack-plugin": "^0.12.0",
    "jsdom": "latest",
    "mkdirp": "^0.5.1",
    "modify-filename": "^1.1.0",
    "node-sass": "latest",
    "path": "^0.12.7",
    "postcss-flexbugs-fixes": "latest",
    "postcss-loader": "latest",
    "postcss-object-fit-images": "^1.1.2",
    "priority-nav": "latest",
    "pug": "latest",
    "sass-extract": "^2.1.0",
    "sass-loader": "latest",
    "sass-resources-loader": "^1.3.3",
    "sass-vars-to-js-loader": "latest",
    "slugify": "latest",
    "style-loader": "latest",
    "style-resources-loader": "latest",
    "svg-sprite": "^1.4.0",
    "uglifyjs-webpack-plugin": "^1.0.0-rc.0",
    "vinyl": "latest",
    "webpack": "^3.12.0",
    "webpack-babel-env-deps": "^1.4.3",
    "webpack-merge": "latest",
    "webpack-synchronizable-shell-plugin": "latest"
  },
  "dependencies": {
    "@babel/polyfill": "latest",
    ....

  }
agrawalrahul0305 commented 5 years ago

Any solution on this? I am also facing a similar issue.