1.4.14 • Published 1 year ago

asset-conjurer v1.4.14

Weekly downloads
-
License
MIT
Repository
-
Last release
1 year 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

1 year ago

1.4.9

1 year ago

1.4.11

1 year ago

1.4.8

1 year ago

1.4.10

1 year ago

1.4.13

1 year ago

1.4.12

1 year ago

1.4.6

1 year ago

1.4.5

1 year ago

1.4.4

1 year ago

1.4.3

1 year ago

1.4.2

1 year ago

1.4.1

1 year ago

1.4.0

1 year ago

1.3.1

1 year ago

1.4.7

1 year ago

1.3.0

1 year ago

1.2.0

1 year ago

1.2.2

1 year ago

1.2.1

1 year ago

1.1.1

1 year ago

1.1.0

1 year ago

1.0.1

1 year ago

1.1.2

1 year ago

1.0.0

1 year ago