Can I output only a css file using an entry point?

175 Views Asked by At

I'm trying to find a way to only output a .css file and not a .js file with it. I cannot seem to find an automated way to handle this.

Example (simplified)

entry: {
    polyfill: [
        'babel-polyfill',
        'react-fastclick'
    ],

    app: [
        './js/index.js',
    ],

    styles: [
        './styles/global.scss'
    ]
}

Because I want to use [chunkname] for caching purposes, I cannot append the global.scss to the app entry.

Any ideas on how to not output a .js file for the styles entry?

0

There are 0 best solutions below