@skyrpex/style-webpack-loaders
v2.0.0
Published
Provides helpers for creating style loaders
Downloads
2
Readme
Style Webpack loaders
Installation
npm install @skyrpex/style-webpack-loaders
Usage
// webpack.config.js
import {
ExtractTextPlugin,
loaders,
vueLoaders,
} from '@skyrpex/style-webpack-loaders';
export default {
// ...
module: {
loaders: {
...loaders(/* { sourceMap: true, extract: true } */),
},
},
vue: {
loaders: {
...vueLoaders(/* { sourceMap: true, extract: true } */),
},
},
plugins: [
// Extract styles to a file
new ExtractTextPlugin('css/[name].[contenthash].css'),
],
};