In Angular2Spa webpack config, allow html/css files from node_modules to be loaded via Webpack.

This commit is contained in:
SteveSandersonMS
2016-09-27 10:03:54 +01:00
parent e8594287db
commit f79936c104

View File

@@ -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 } }
]
},