1
0
Fork 0

🚧 Ongoing work on components and pattern info

This commit is contained in:
Joost De Cock 2019-04-29 09:01:51 +02:00
parent a3ae718632
commit ea41dc0106
168 changed files with 17518 additions and 14384 deletions

View file

@ -1,32 +1,39 @@
import babel from "rollup-plugin-babel";
import commonjs from "rollup-plugin-commonjs";
import external from "rollup-plugin-peer-deps-external";
import postcss from "rollup-plugin-postcss";
import resolve from "rollup-plugin-node-resolve";
import json from "rollup-plugin-json";
import minify from "rollup-plugin-babel-minify";
import peerDepsExternal from "rollup-plugin-peer-deps-external";
import sass from "rollup-plugin-sass";
import { name, version, description, author, license } from "./package.json";
import url from "rollup-plugin-url";
import svgr from "@svgr/rollup";
import pkg from "./package.json";
export default {
input: "src/index.js",
output: {
sourcemap: true
},
output: [
{
file: pkg.main,
format: "cjs",
sourcemap: true
},
{
file: pkg.module,
format: "es",
sourcemap: true
}
],
plugins: [
peerDepsExternal(),
resolve({ modulesOnly: true }),
json(),
external(),
postcss({
modules: true
}),
url(),
svgr(),
babel({
exclude: "node_modules/**",
plugins: [
"@babel/plugin-proposal-object-rest-spread",
"@babel/plugin-proposal-class-properties"
]
plugins: ["@babel/external-helpers"]
}),
sass(),
minify({
comments: false,
sourceMap: true,
banner: `/**\n * ${name} | v${version}\n * ${description}\n * (c) ${new Date().getFullYear()} ${author}\n * @license ${license}\n */`
})
resolve(),
commonjs()
]
};