0.1.40 • Published 3 months ago

@pictogrammers/element-webpack v0.1.40

Weekly downloads
-
License
MIT
Repository
github
Last release
3 months ago

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

OptionDefaultDescription
port3000localhost port
srcsrcSource folder for components, favicon.svg, and index.html
distdistDistribution 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.
beforenullRun additional code after before every compilation.
afternullRun additional code after every compilation.
0.1.40

3 months ago

0.1.39

3 months ago

0.1.34

3 months ago

0.1.35

3 months ago

0.1.36

3 months ago

0.1.37

3 months ago

0.1.38

3 months ago

0.1.30

4 months ago

0.1.31

4 months ago

0.1.32

4 months ago

0.1.33

4 months ago

0.1.28

4 months ago

0.1.29

4 months ago

0.1.27

4 months ago

0.1.25

4 months ago

0.1.26

4 months ago

0.1.20

2 years ago

0.1.21

2 years ago

0.1.22

2 years ago

0.1.23

2 years ago

0.1.24

2 years ago

0.1.17

2 years ago

0.1.18

2 years ago

0.1.19

2 years ago

0.1.16

2 years ago

0.1.15

2 years ago

0.1.14

2 years ago

0.1.13

2 years ago

0.1.12

2 years ago

0.1.11

2 years ago

0.1.10

2 years ago

0.1.8

2 years ago

0.1.7

2 years ago

0.1.6

2 years ago

0.1.5

2 years ago

0.1.4

2 years ago

0.1.3

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago