From 9e82629c1fbea1749890d69772c8c13180e7559a Mon Sep 17 00:00:00 2001 From: Max Date: Thu, 28 Sep 2017 09:37:38 +1000 Subject: [PATCH] Add AureliaPlugin to the vendor bundle This will put aurelia modules into the bundle from the correct distribution folder --- .../content/Aurelia-CSharp/webpack.config.vendor.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Microsoft.AspNetCore.SpaTemplates/content/Aurelia-CSharp/webpack.config.vendor.js b/src/Microsoft.AspNetCore.SpaTemplates/content/Aurelia-CSharp/webpack.config.vendor.js index 1dc579cedf..7834dd871c 100644 --- a/src/Microsoft.AspNetCore.SpaTemplates/content/Aurelia-CSharp/webpack.config.vendor.js +++ b/src/Microsoft.AspNetCore.SpaTemplates/content/Aurelia-CSharp/webpack.config.vendor.js @@ -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'),