Skip to content

Ibrahimrahhal/inject-global-sass

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Webpack Inject Global Sass

Webpack loader to inject specified sass file(s) globally to all loaded sass files

Note: this loader is still under development & not ready to be used in production

Getting Started

To begin, you'll need to install inject-global-sass:

npm install --save-dev inject-global-sass

Then add the loader to your webpack config for a specific file type. For example:

webpack.config.js

module.exports = {
  module: {
    rules: [
      {
        test: /\.scss/i,
        loader: 'inject-global-sass',
        options: {
          files: "src/sass/global.scss"
        }
      },
    ],
  },
};

Contributing

Please take a moment to read our contributing guidelines if you haven't yet done so.

CONTRIBUTING

License

MIT

About

Webpack loader to inject specified sass file globally to all loaded sass files

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

Packages

No packages published