UNPKG

1.61 kBMarkdownView Raw
1# aurelia-webpack-plugin
2
3[![npm Version](https://img.shields.io/npm/v/aurelia-webpack-plugin.svg)](https://www.npmjs.com/package/aurelia-webpack-plugin)
4[![Discord Chat](https://img.shields.io/discord/448698263508615178.svg)](https://discord.gg/RBtyM6u)
5[![CI](https://github.com/aurelia/webpack-plugin/actions/workflows/action.yml/badge.svg)](https://github.com/aurelia/webpack-plugin/actions/workflows/action.yml)
6
7This library is part of the [Aurelia](http://www.aurelia.io/) platform and contains a Webpack plugin designed to enable proper Webpack bundling.
8
9> To keep up to date on [Aurelia](http://www.aurelia.io/), please visit and subscribe to [the official blog](http://blog.aurelia.io/) and [our email list](http://eepurl.com/ces50j). We also invite you to [follow us on twitter](https://twitter.com/aureliaeffect). If you have questions, please [join our community on Discord](https://discord.gg/RBtyM6u) or use [stack overflow](http://stackoverflow.com/search?q=aurelia). Documentation can be found [in our developer hub](http://aurelia.io/docs).
10
11## Installation
12
13Install with npm
14
15```
16npm install aurelia-webpack-plugin
17```
18
19## Usage
20
21Add the plugin to the webpack config file:
22
23```javascript
24let { AureliaPlugin } = require('aurelia-webpack-plugin');
25module.exports = {
26 entry: 'aurelia-bootstrapper',
27 output: {
28 path: 'dist',
29 filename: 'main.js'
30 },
31 plugins: [ new AureliaPlugin() ]
32};
33```
34
35## Documentation
36
37Information about how to use this Webpack plugin can be found in [its Github wiki](https://github.com/aurelia/webpack-plugin/wiki).