0.1.40 • Published 1 year ago
@pictogrammers/element-webpack v0.1.40
Element Webpack Config
Shared webpack configuration for use with @pictogrammers/element
package.
const config = require('@pictogrammers/element-webpack');
module.exports = config({
port: 3000,
src: 'src',
dist: 'dist',
watch: [
'src/**/*.md'
],
before: (components, args, mode) => {
console.log(`${components.length} Components`);
},
after: (components, args, mode) => {
// Run after compilation
// components = [
// {
// name,
// input,
// namespace,
// component
// examples: [
// { example, exampleInput },
// ...
// ]
// },
// ...
// ]
// mode = 'production' | 'development'
},
copy: [
{ from: 'src/styles.css', to: 'styles.css' },
]
// Shorthand copy for the above
// copy: [ 'src/styles.css' ]
});
Options
Option | Default | Description |
---|---|---|
port | 3000 | localhost port |
src | src | Source folder for components, favicon.svg , and index.html |
dist | dist | Distribution folder. Defaults to dist |
watch | [] | Array of additional files to watch. Glob string format. |
copy | [] | Copy over additional folders or files to the dist folder. |
before | null | Run additional code after before every compilation. |
after | null | Run additional code after every compilation. |
0.1.40
1 year ago
0.1.39
1 year ago
0.1.34
1 year ago
0.1.35
1 year ago
0.1.36
1 year ago
0.1.37
1 year ago
0.1.38
1 year ago
0.1.30
1 year ago
0.1.31
1 year ago
0.1.32
1 year ago
0.1.33
1 year ago
0.1.28
1 year ago
0.1.29
1 year ago
0.1.27
1 year ago
0.1.25
1 year ago
0.1.26
1 year ago
0.1.20
3 years ago
0.1.21
3 years ago
0.1.22
3 years ago
0.1.23
3 years ago
0.1.24
3 years ago
0.1.17
3 years ago
0.1.18
3 years ago
0.1.19
3 years ago
0.1.16
3 years ago
0.1.15
3 years ago
0.1.14
3 years ago
0.1.13
3 years ago
0.1.12
3 years ago
0.1.11
3 years ago
0.1.10
3 years ago
0.1.8
3 years ago
0.1.7
3 years ago
0.1.6
3 years ago
0.1.5
3 years ago
0.1.4
3 years ago
0.1.3
3 years ago
0.1.2
3 years ago
0.1.1
3 years ago
0.1.0
3 years ago