dart-loader

0.0.1 • Public • Published

Dart Webpack loader

npm

Usage

This is a simple Webpack loader that shells out to dart2js to build a Dart web app.

To use it, first install the package:

$ npm install --save dart-loader

then configure the loader in your Webpack config:

module.exports = {
  // ...
  module: {
    rules: [
      { test: /\.dart$/, loader: 'dart-loader' },
      // ...
    ]
  }
}

Make sure you have the dart2js binary somewhere in your PATH.

Example

Check out the example directory for a simple Hello World example.

Readme

Keywords

none

Package Sidebar

Install

npm i dart-loader

Weekly Downloads

1

Version

0.0.1

License

MIT

Last publish

Collaborators

  • mrdziuban