Gem 一覧へ戻る
Vue cli plugin to support style-resources-loader.
- star 数
- 55
- watcher 数
- 1
- fork 数
- 5
- issue 数
- 1
- 最終更新
- 2021/05/11
Vue cli plugin to support style-resources-loader.
Add style-resources-loader to your project easier.
vue add style-resources-loader
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 |
Please read more at patterns.
const path = require('path') module.exports = { pluginOptions: { 'style-resources-loader': { 'preProcessor': 'stylus', 'patterns': [ path.resolve(__dirname, './src/styles/abstracts/*.styl'), ] } } }