A
A
Alex Polyakh2017-10-24 10:45:58
JavaScript
Alex Polyakh, 2017-10-24 10:45:58

I can't take out styles from all components when assembling 'production', what am I doing wrong?

Good time of the day.
When assembling 'production', only those styles that I include in index.js (input to the application) are taken out.
For each component there is a separate folder, which contains ComponentJS, index.scss, inside each component I include styles import './index, scss'
I did everything as described in the office. 'Extract Text Plugin' documentation, { allChunks: true }.
webpack.config.js:
https://codepen.io/PolyakhAlex/pen/aLrxVN?editors=0010;
At the very bottom, I indicated the setting for 'prod' which I put into a separate module.
Thanks for the help!

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