0.1.5 • Published 5 years ago
vue-cli-plugin-style-resources-loader v0.1.5
Introduction
Add style-resources-loader to your project easier.
Installation
vue add style-resources-loaderConfig
Define your resource's patterns under pluginOptions > style-resources-loader in file vue.config.js.
| Name | Data type | Description |
|---|---|---|
| preProcessor | string | One of: sass, scss, stylus, less |
| patterns | string, array | Path to the resources you would like to inject |
patterns
Please read more at patterns.
Example
const path = require('path')
module.exports = {
pluginOptions: {
'style-resources-loader': {
'preProcessor': 'stylus',
'patterns': [
path.resolve(__dirname, './src/styles/abstracts/*.styl'),
]
}
}
}