1.4.14 • Published 7 months ago

asset-conjurer v1.4.14

Weekly downloads
-
License
MIT
Repository
-
Last release
7 months ago

asset-conjurer

Example:

buildAssets({
  watch: true,
  afterBuild: () => {
    // after build js
  },
  js: {
    pathIn: 'src/js',
    pathOut: 'www/assets/js',
    pathHash: 'tmp/hash',
    name: 'main',
    bundler: 'esbuild', // or 'webpack'
    esbuildFormat: 'module', // https://esbuild.github.io/api/#format
    sourcemap: true, // generate or not sourcemap
    webpackTarget: 'es2020', // https://webpack.js.org/configuration/target/
    webpackOutputChunkFormat: 'esm', // https://webpack.js.org/configuration/output/#outputchunkformat
    watches: ['../common/js'] // additional folders to watch
  },
  scss: {
    pathIn: 'src/scss',
    pathOut: 'www/assets/css',
    name: '1-basic',
    afterBuild: ({ result }) => result.css, // fn after build
    watches: [`src/another-scss`] // additional folders to watch
  },
  absolutePath: __dirname
});

Breaking change on 1.4.x: asset copy has been removed, watches only admits routes without glob queries.

1.4.14

7 months ago

1.4.9

8 months ago

1.4.11

8 months ago

1.4.8

8 months ago

1.4.10

8 months ago

1.4.13

8 months ago

1.4.12

8 months ago

1.4.6

8 months ago

1.4.5

8 months ago

1.4.4

8 months ago

1.4.3

8 months ago

1.4.2

8 months ago

1.4.1

8 months ago

1.4.0

8 months ago

1.3.1

8 months ago

1.4.7

8 months ago

1.3.0

8 months ago

1.2.0

10 months ago

1.2.2

10 months ago

1.2.1

10 months ago

1.1.1

10 months ago

1.1.0

10 months ago

1.0.1

10 months ago

1.1.2

10 months ago

1.0.0

11 months ago