Add AureliaPlugin to the vendor bundle

This will put aurelia modules into the bundle from the correct distribution folder
This commit is contained in:
Max 2017-09-28 09:37:38 +10:00 committed by Steve Sanderson
parent 1f92811ce0
commit 9e82629c1f
1 changed files with 2 additions and 0 deletions

View File

@ -2,6 +2,7 @@ var path = require('path');
var webpack = require('webpack');
var ExtractTextPlugin = require('extract-text-webpack-plugin');
var extractCSS = new ExtractTextPlugin('vendor.css');
var { AureliaPlugin } = require('aurelia-webpack-plugin');
module.exports = ({ prod } = {}) => {
const isDevBuild = !prod;
@ -44,6 +45,7 @@ module.exports = ({ prod } = {}) => {
},
plugins: [
extractCSS,
new AureliaPlugin({ aureliaApp: undefined, dist: "native-modules" }),
new webpack.ProvidePlugin({ $: 'jquery', jQuery: 'jquery' }), // Maps these identifiers to the jQuery package (because Bootstrap expects it to be a global variable)
new webpack.DllPlugin({
path: path.join(__dirname, 'wwwroot', 'dist', '[name]-manifest.json'),