Add json-loader to add webpack.config.js files. Helps with #507.

This commit is contained in:
SteveSandersonMS
2016-12-13 12:57:06 +00:00
parent 1c4682e50d
commit 4cc61d79e2
8 changed files with 13 additions and 5 deletions

View File

@@ -33,6 +33,7 @@
"file-loader": "^0.9.0",
"html-loader": "^0.4.4",
"html-webpack-plugin": "^2.22.0",
"json-loader": "^0.5.4",
"raw-loader": "^0.5.1",
"style-loader": "^0.13.1",
"to-string-loader": "^1.1.5",

View File

@@ -17,7 +17,8 @@ module.exports = {
{ test: /\.ts$/, include: /ClientApp/, loader: 'ts-loader', query: { silent: true } },
{ test: /\.html$/, loader: 'html-loader' },
{ test: /\.css$/, loaders: [ 'style-loader', 'css-loader' ] },
{ test: /\.(png|woff|woff2|eot|ttf|svg)$/, loader: 'url-loader?limit=100000' }
{ test: /\.(png|woff|woff2|eot|ttf|svg)$/, loader: 'url-loader?limit=100000' },
{ test: /\.json$/, loader: 'json-loader' }
]
},
plugins: [