Skip to content
Permalink
Browse files

fix(webpack): fix TypeScript error on unneeded test code when running…

… webpack
  • Loading branch information...
3cp committed Apr 30, 2019
1 parent 6501a57 commit 36d384ec985ee197c27ac115e7d9722d0d2f4a0f
Showing with 2 additions and 2 deletions.
  1. +2 −2 skeleton/webpack/webpack.config.js
@@ -42,7 +42,7 @@ const cssRules = [
// @if feat.sass
const sassRules = [
{
loader: "sass-loader",
loader: "sass-loader",
options: {
includePaths: ["node_modules"]
}
@@ -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 } },

0 comments on commit 36d384e

Please sign in to comment.
You can’t perform that action at this time.