@dealmore/craco-plugin-linaria
v1.0.0
Published
Craco plugin which configures babel & webpack to work with linaria 2+
Downloads
49
Maintainers
Readme
@dealmore/craco-plugin-linaria
Craco plugin which configures babel & webpack to work with linaria 2+.
Usage
npm i --save-dev @dealmore/craco-plugin-linaria # npm or
yarn add -D @dealmore/craco-plugin-linaria # yarn
// craco.config.js
const linaria = require('@dealmore/craco-plugin-linaria');
module.exports = {
plugins: [
{
plugin: linaria,
},
],
};
With TypeScript
When using TypeScript, you need at least version >=3.8.0"
.
| Option | Type | Description |
| ----------- | --------- | ----------------------------------------------------------------------------------- |
| sourceMap
| boolean
| true
to emit a css-sourceMap. Emits a sourceMap per default in production builds. |
Example
License
Apache-2.0 - see LICENSE for details.