@aofl/webcomponent-css-loader

1.2.0 • Public • Published

@aofl/webcomponent-css-loader

The @aofl/webcomponent-css-loader A loader that shares pruned global styles between web components.

Getting started

Run npm i -D @aofl/webcomponent-css-loader

Then add the loader to your webpack config:

module: {
  rules: [
    {
      test: /\.css$/,
      use: [
        {
          loader: '@aofl/webcomponent-css-loader',
          options: {
            sourceMap: false
            path: path.resolve(__dirname, '..', 'templates', 'main', 'css', 'index.css')
          }
        }
      ]
    }
  ]
}

Package Sidebar

Install

npm i @aofl/webcomponent-css-loader@1.2.0

Version

1.2.0

License

MIT

Unpacked Size

4.07 kB

Total Files

3

Last publish

Collaborators

  • alexdinari
  • lorenzo.battigelli
  • alex.dinari
  • ageoflearning
  • jiezhangaofl