4.0.4 • Published 4 years ago
@pectin/core v4.0.4
@pectin/core
Core implementation of pectin logic
Usage
'use strict';
const pectin = require('@pectin/core');
const cwd = process.cwd(); // default
const pkg = require('./package.json');
const rollupConfig = pectin(pkg, { cwd });
The generated Rollup config is used in both rollup-config-pectin
and @pectin/api
.
Note: This package requires node >=8.9.
Options
To transform SVG imports into inlined data URIs, pass rollup.inlineSVG = true
in your package.json:
{
"name": "my-pkg",
"version": "1.0.0",
"rollup": {
"inlineSVG": true
}
}
If you are using babel-plugin-inline-react-svg in your Babel config you should not configure this option as it will break the plugin.
Related
Check the Pectin project docs for more information.
4.0.4
4 years ago
4.0.3
5 years ago
4.0.2
5 years ago
4.0.1
5 years ago
4.0.0
5 years ago
3.4.0
5 years ago
3.3.0
5 years ago
3.2.0
5 years ago
3.1.0
5 years ago
3.0.1
5 years ago
3.0.0
5 years ago
2.6.0
5 years ago
2.5.1
5 years ago
2.5.0
5 years ago
2.4.1
5 years ago
2.4.0
5 years ago
2.2.0
5 years ago
2.1.2
6 years ago
2.1.1
6 years ago
2.1.0
6 years ago
1.3.1
6 years ago
2.0.0
6 years ago
1.3.0
6 years ago
1.0.0
6 years ago