vue-cli-plugin-style-resources-loader
vue-cli plugin to add style-resources-loader
273,649
55
| Install | |
|---|---|
npm install vue-cli-plugin-style-resources-loader |
|
| Latest Version: | 0.1.5 |
| License: | MIT |
| Last Updated: | May 10, 2021 |
| Links: | GitHub · npm |
Maintainer: nguyenvanduocit
Introduction
Add style-resources-loader to your project easier.
Installation
vue add style-resources-loader
Config
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'),
]
}
}
}
License
Version History
| Version | Released | License |
|---|---|---|
| 0.1.5 | MIT | |
| 0.1.4 | MIT | |
| 0.1.3 | MIT | |
| 0.1.2 | MIT | |
| 0.1.1 | MIT | |
| 0.1.0 | MIT |