{"id":19013958,"url":"https://github.com/pictogrammers/element-webpack","last_synced_at":"2026-04-25T23:30:19.077Z","repository":{"id":65522407,"uuid":"483498892","full_name":"Pictogrammers/Element-Webpack","owner":"Pictogrammers","description":"Shared Element Webpack Config","archived":false,"fork":false,"pushed_at":"2024-01-20T17:48:53.000Z","size":375,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-01T23:02:56.922Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Pictogrammers.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-04-20T03:54:10.000Z","updated_at":"2022-04-21T03:38:35.000Z","dependencies_parsed_at":"2025-01-01T22:26:27.897Z","dependency_job_id":"62736203-5b94-47a4-9d03-3868a6e1cad3","html_url":"https://github.com/Pictogrammers/Element-Webpack","commit_stats":{"total_commits":13,"total_committers":1,"mean_commits":13.0,"dds":0.0,"last_synced_commit":"ab247a1b2924fd5a64bf7a6b33b25d9a6cfb812f"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Pictogrammers%2FElement-Webpack","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Pictogrammers%2FElement-Webpack/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Pictogrammers%2FElement-Webpack/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Pictogrammers%2FElement-Webpack/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Pictogrammers","download_url":"https://codeload.github.com/Pictogrammers/Element-Webpack/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240052657,"owners_count":19740552,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-08T19:26:48.025Z","updated_at":"2026-04-25T23:30:19.044Z","avatar_url":"https://github.com/Pictogrammers.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Element Webpack Config\n\nShared webpack configuration for use with `@pictogrammers/element` package.\n\n```javascript\nconst config = require('@pictogrammers/element-webpack');\n\nmodule.exports = config({\n    port: 3000,\n    src: 'src',\n    dist: 'dist',\n    watch: [\n        'src/**/*.md'\n    ],\n    before: (components, args, mode) =\u003e {\n        console.log(`${components.length} Components`);\n    },\n    after: (components, args, mode) =\u003e {\n        // Run after compilation\n        // components = [\n        //   {\n        //     name,\n        //     input,\n        //     namespace,\n        //     component\n        //     examples: [\n        //       { example, exampleInput },\n        //       ...\n        //     ]\n        //   },\n        //   ...\n        // ]\n        // mode = 'production' | 'development'\n    },\n    copy: [\n        { from: 'src/styles.css', to: 'styles.css' },\n    ]\n    // Shorthand copy for the above\n    // copy: [ 'src/styles.css' ]\n});\n```\n\n## Options\n\n| Option | Default | Description |\n| ------ | ------- | ----------- |\n| `port` | `3000` | localhost port |\n| `src`  | `src`  | Source folder for components, `favicon.svg`, and `index.html` |\n| `dist` | `dist` | Distribution folder. Defaults to `dist` |\n| `watch` | `[]`  | Array of additional files to watch. Glob string format. |\n| `copy` | `[]` | Copy over additional folders or files to the `dist` folder. |\n| `before` | `null` | Run additional code after before every compilation. |\n| `after` | `null` | Run additional code after every compilation. |","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpictogrammers%2Felement-webpack","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpictogrammers%2Felement-webpack","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpictogrammers%2Felement-webpack/lists"}