@static-styled-plugin/webpack-plugin
TypeScript icon, indicating that this package has built-in type declarations

0.3.2 • Public • Published

static-styled-plugin

A plugin that makes styled-components zero-runtime.

Installation

npm install @static-styled-plugin/webpack-plugin

Setup

// webpack.config.js
const { StaticStyledPlugin } = require('@static-styled-plugin/webpack-plugin')

module.exports = {
  plugins: [
    new StaticStyledPlugin({ themeFilePath: './src/theme.ts' }),
  ]
}

⚠️ Note: You need to setup loaders that can handle .css files, such as css-loader and style-loader, as well.

Package Sidebar

Install

npm i @static-styled-plugin/webpack-plugin

Weekly Downloads

0

Version

0.3.2

License

MIT

Unpacked Size

10.6 kB

Total Files

9

Last publish

Collaborators

  • tokky0425