Skip to content

Latest commit

 

History

History
38 lines (24 loc) · 786 Bytes

README.md

File metadata and controls

38 lines (24 loc) · 786 Bytes

dfx-ember-webpack-plugin

Webpack plugin for compiling an EmberJS frontend for the Internet Computer

Installation

npm install dfx-ember-webpack-plugin --save-dev

Usage

Just add this plugin to your configuration.

// webpack.config.js

// ...

const DfxEmberWebpackPlugin = require ('dfx-ember-webpack-plugin');

// ...

module.exports = {
  // ... 
  
  plugins: [
    // This plugin must come before the HtmlWebpackPlugin plugin.
    new DfxEmberWebpackPlugin ({ context: __dirname }),

    // other plugins
  ]
};

Happy Coding!