Skip to content

pre-config for modern CSS language(less/sass/stylus)

Notifications You must be signed in to change notification settings

fayfang/style-config-loader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

style-config-loader

小工具,用于在stylus、less、sass等css预处理语言前插入公共的代码,以减少代码中不断import某个文件

install

  npm install style-config-loader --save-dev

example

webpack.config.js

const path = require('path')

module.exports = {
  ...,
  module: {
    rules: [
      {
        test: /\.styl$/,
        use: [
          'css-loader',
          'stylus-loader',
          {
            loader: 'style-config-loader',
            options: {
              configPath: path.resolve('./src/style/config.styl')
            }
          }
        ]
      }
    ]
  }
}

About

pre-config for modern CSS language(less/sass/stylus)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published