webpack - How to create common.css file and use postcss only? -


this current webpack config – https://gist.github.com/lavezzi1/1179d91c584c0b0a7544c862c8bb07ca

as can see multipage app , faced few problems.

  1. i want compile 2 files each page: common.css (css file common styles) , index.css (for example css file individual styles index page). how can that? tried commonchunks plugin generates common.js file, not css. found workaround how make it, import main.css file directly in entry js file of each page. makes problem, describes below;

  2. i want use postcss without preprocessors. possible? when import main.css directly in js file postcss plugin doesn't work (code doesn't compile) tested postcss-nested plugin works fine inside of *.vue file. how fix that?

i stuck it. hope help. thanks!

have tried add !postcss-loader after !css-loader?

the net result be:

loader: extracttextplugin.extract('style-loader','css-loader!postcss-loader?sourcemap!sass-loader') 

Comments

Popular posts from this blog

Spring Boot + JPA + Hibernate: Unable to locate persister -

go - Golang: panic: runtime error: invalid memory address or nil pointer dereference using bufio.Scanner -

c - double free or corruption (fasttop) -