Skip to content

Commit

Permalink
fix(webpack): fix TypeScript error on unneeded test code when running…
Browse files Browse the repository at this point in the history
… webpack
  • Loading branch information
3cp committed Apr 30, 2019
1 parent 6501a57 commit 36d384e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions skeleton/webpack/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ const cssRules = [
// @if feat.sass
const sassRules = [
{
loader: "sass-loader",
loader: "sass-loader",
options: {
includePaths: ["node_modules"]
}
Expand Down Expand Up @@ -282,7 +282,7 @@ module.exports = ({ production, server, extractCss, coverage, analyze, karma } =
},
// @endif
// @if feat.typescript
{ test: /\.ts$/, loader: "ts-loader" },
{ test: /\.ts$/, loader: "ts-loader", options: { reportFiles: [ srcDir+'/**/*.ts'] }, include: srcDir },
// @endif
// embed small images and fonts as Data Urls and larger ones as files:
{ test: /\.(png|gif|jpg|cur)$/i, loader: 'url-loader', options: { limit: 8192 } },
Expand Down

0 comments on commit 36d384e

Please sign in to comment.