From f79936c10459c5982bf64ac4cc1532019f194596 Mon Sep 17 00:00:00 2001 From: SteveSandersonMS Date: Tue, 27 Sep 2016 10:03:54 +0100 Subject: [PATCH] In Angular2Spa webpack config, allow html/css files from node_modules to be loaded via Webpack. --- templates/Angular2Spa/webpack.config.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/Angular2Spa/webpack.config.js b/templates/Angular2Spa/webpack.config.js index 65ec71f..9d1b48c 100644 --- a/templates/Angular2Spa/webpack.config.js +++ b/templates/Angular2Spa/webpack.config.js @@ -10,8 +10,8 @@ module.exports = { module: { loaders: [ { test: /\.ts$/, include: /ClientApp/, loader: 'ts', query: { silent: true } }, - { test: /\.html$/, include: /ClientApp/, loader: 'raw' }, - { test: /\.css/, include: /ClientApp/, loader: 'to-string!css' }, + { test: /\.html$/, loader: 'raw' }, + { test: /\.css/, loader: 'to-string!css' }, { test: /\.(png|jpg|jpeg|gif|svg)$/, loader: 'url', query: { limit: 25000 } } ] },