Skip to content

freshesx/style-import-loader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

@freshes/style-import-loader

Usage

yarn add -D @freshes/style-import-loader
module: {
  rules: {
    test: /\.(js|vue)$/,
    use: [
      {
        loader: '@freshes/style-import-loader',
        options: {
          scoped: '@humans/[\\w-]+', // e.g. @human/icon
          style: 'dist/main.css' // e.g. @human/icon/dist/main.css
        }
      }
    ]
  }
}

About

Auto import component style for webpack loader

Resources

Stars

Watchers

Forks

Packages

No packages published