mirror of
https://github.com/aspnet/JavaScriptServices.git
synced 2025-12-22 17:47:53 +00:00
In Angular2Spa webpack config, allow html/css files from node_modules to be loaded via Webpack.
This commit is contained in:
@@ -10,8 +10,8 @@ module.exports = {
|
|||||||
module: {
|
module: {
|
||||||
loaders: [
|
loaders: [
|
||||||
{ test: /\.ts$/, include: /ClientApp/, loader: 'ts', query: { silent: true } },
|
{ test: /\.ts$/, include: /ClientApp/, loader: 'ts', query: { silent: true } },
|
||||||
{ test: /\.html$/, include: /ClientApp/, loader: 'raw' },
|
{ test: /\.html$/, loader: 'raw' },
|
||||||
{ test: /\.css/, include: /ClientApp/, loader: 'to-string!css' },
|
{ test: /\.css/, loader: 'to-string!css' },
|
||||||
{ test: /\.(png|jpg|jpeg|gif|svg)$/, loader: 'url', query: { limit: 25000 } }
|
{ test: /\.(png|jpg|jpeg|gif|svg)$/, loader: 'url', query: { limit: 25000 } }
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user