0.1.5 • Published 4 years ago

vue-cli-plugin-style-resources-loader v0.1.5

Weekly downloads
11,665
License
MIT
Repository
github
Last release
4 years ago

Introduction

FOSSA Status npm version

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.

NameData typeDescription
preProcessorstringOne of: sass, scss, stylus, less
patternsstring, arrayPath 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

FOSSA Status