npm.io
5.9.1 • Published 2 weeks ago

@warp-drive/build-config

Licence
MIT
Version
5.9.1
Deps
5
Size
536 kB
Vulns
0
Weekly
0
Stars
3.2K

WarpDrive

NPM Stable Version NPM Downloads License EmberJS Discord Community Server WarpDrive Discord Server


WarpDrive is the lightweight data library for web apps —
universal, typed, reactive, and ready to scale.


@warp-drive/build-config

Enables providing a build config to optimize application assets

This package has been merged into @warp-drive/core and is not recommended for new applications.

Tagged Releases

  • NPM Canary Version
  • NPM Beta Version
  • NPM Stable Version
  • NPM LTS Version
  • NPM LTS 4.12 Version

Usage

import { setConfig } from '@warp-drive/build-config';

setConfig(app, __dirname, {
  // ... options
});

In an ember-cli-build file that'll typically look like this:

const EmberApp = require('ember-cli/lib/broccoli/ember-app');

module.exports = async function (defaults) {
  const { setConfig } = await import('@warp-drive/build-config');

  const app = new EmberApp(defaults, {});

  setConfig(app, __dirname, {
    // WarpDrive settings go here (if any)
  });

  return app.toTree();
};

Credits

Brought to you with love by Ember

Keywords