CSS-in-JS library for the modern web - nextjs plugin
npm install @style-this/nextCSS-in-JS library for the modern web - webpack plugin
``bash`
npm install @style-this/webpackor
pnpm add @style-this/webpackor
yarn add @style-this/webpack
`javascript
// webpack.config.js
import styleThisWebpackPlugin from '@style-this/webpack';
export default {
// ... other webpack config
plugins: [
styleThisWebpackPlugin({
// options
})
]
};
`
`javascript
// webpack.config.js
import styleThisWebpackPlugin from '@style-this/webpack';
import styleThisSolidJsWebpackPlugin from '@style-this/webpack/solid-js';
export default {
// ... other webpack config
plugins: [
styleThisWebpackPlugin({
// options
}),
styleThisSolidJsWebpackPlugin({
// options
})
]
};
`
- include?: RegExp[] - Array of RegExp patterns to include filesexclude?: RegExp[]
- - Array of RegExp patterns to exclude filescssExtension?: string
- - CSS file extension (default: "css")filter?: Filter | Filter[]
- - Custom filter function(s) or RegExp(s)
- filter?: Filter | Filter[] - Custom filter function(s) or RegExp(s)
`typescript``
type Filter = RegExp | ((filepath: string) => boolean);
MIT