inject-global-sass

1.0.0-alpha.1 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i inject-global-sass

Weekly Downloads

2

Version

1.0.0-alpha.1

License

MIT

Unpacked Size

5.04 kB

Total Files

5

Last publish

Collaborators

  • ibrahim-rahhal