T
T
thehighhomie2018-02-24 21:43:28
webpack
thehighhomie, 2018-02-24 21:43:28

Webpack: -p flag and cssnano - broken stylesheet?

Why does the file get corrupted when running webpack with the -p flag (in production) and the cssnano minifier?
This happens when I include 2 files from node_modules:

@import '~bootstrap/scss/bootstrap';
@import '~plyr/src/scss/plyr';

If I connect one thing, then everything is compressed, if both, then there are no plyr styles in the collected file at all ...
If I remove the -p flag when starting webpack, then everything works fine. What could be the problem?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question