I'm trying to get my webpack build to export 2 css files, one for all the lib files, and one for my files. I am requiring both files separately into my main.js. Atm it is merging all css requires into 1 file.
Only way I have been able to generate files is by splitting the entry:
entry: {
lib:'./style/lib.scss',
app: [
'./src/index.js',
'./style/style.scss',
],
},
But the lib.scss generated is a duplicate of style, and this method also creates a redudant lib.js. Is there any way to create 2 separate css files, or to set any css that is required needs to be exported individually and not merged into single file?