Webpack plugin for compiling an EmberJS frontend for the Internet Computer
npm install dfx-ember-webpack-plugin --save-dev
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!