Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to omit stats/logs from extract-text-webpack-plugin dependence? #62

Closed
fernandojunior opened this issue Feb 12, 2018 · 3 comments
Closed

Comments

@fernandojunior
Copy link

I tried the following webpack configs (both client and server) :

module.exports = {
    stats: { children: false },
   // other settings
}

and

module.exports = {
    stats: 'errors-only',
   // other settings
}

I also tried this workaround, but it did'n work.

My package.json:

"devDependencies": {
  "webpack": "^3.10.0",
  "extract-css-chunks-webpack-plugin": "^2.0.18"
}

Log/stats example:

    Child extract-text-webpack-plugin:
        [./node_modules/css-loader/index.js?{"modules":true,"localIdentName":"[name]__[local]--[hash:base64:5]"}!./node_modules/stylus-loader/index.js!./client/components/Bar/Bar.styl] ./node_modules/css-loader?{"modules":true,"localIdentName":"[name]__[local]--[hash:base64:5]"}!./node_modules/stylus-loader!./client/components/Bar/Bar.styl 535 bytes {0} [built]
        [./node_modules/css-loader/lib/css-base.js] ./node_modules/css-loader/lib/css-base.js 2.26 kB {0} [built]
    Child extract-text-webpack-plugin:
        [./node_modules/css-loader/index.js?{"modules":true,"localIdentName":"[name]__[local]--[hash:base64:5]"}!./node_modules/stylus-loader/index.js!./client/components/Bar/index.styl
@fernandojunior
Copy link
Author

I found a solution.
webpack-contrib/extract-text-webpack-plugin#35 (comment)

Thanks

@MartinCerny-awin
Copy link

@fernandojunior Could you please add your solution?

@ScriptedAlchemy
Copy link
Collaborator

If this is a common need, somebody can PR a what and why to the repo and I’ll read it over + merge it :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants