✨ Added pattern examples
This commit is contained in:
parent
f43937de48
commit
b18b117948
194 changed files with 28557 additions and 28 deletions
|
@ -7,11 +7,10 @@ import { name, version, description, author, license } from "./package.json";
|
|||
import components from "./src/index.js";
|
||||
|
||||
const createConfig = (component, module) => {
|
||||
console.log(component);
|
||||
return {
|
||||
input: `./src/${component}/index.js`,
|
||||
input: `./src/${component === "index" ? "" : component + "/"}index.js`,
|
||||
output: {
|
||||
file: `dist/${component}/index` + (module ? ".mjs" : ".js"),
|
||||
file: `./${component}/index` + (module ? ".mjs" : ".js"),
|
||||
format: module ? "es" : "cjs",
|
||||
sourcemap: true
|
||||
},
|
||||
|
@ -37,5 +36,5 @@ for (let component of components) {
|
|||
config.push(createConfig(component, false));
|
||||
config.push(createConfig(component, true));
|
||||
}
|
||||
console.log(JSON.stringify(config, null, 2));
|
||||
|
||||
export default config;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue