Skip to content

Commit

Permalink
fix(skeleton): fix ts-loader option for webpack+karma setup
Browse files Browse the repository at this point in the history
  • Loading branch information
3cp committed May 28, 2019
1 parent 615096a commit beca7f3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion skeleton/webpack/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ const when = (condition, config, negativeConfig) =>
const title = 'Aurelia Navigation Skeleton';
const outDir = path.resolve(__dirname, project.platform.output);
const srcDir = path.resolve(__dirname, 'src');
const testDir = path.resolve(__dirname, 'test', 'unit');
const nodeModulesDir = path.resolve(__dirname, 'node_modules');
const baseUrl = '/';

Expand Down Expand Up @@ -282,7 +283,7 @@ module.exports = ({ production, server, extractCss, coverage, analyze, karma } =
},
// @endif
// @if feat.typescript
{ test: /\.ts$/, loader: "ts-loader", options: { reportFiles: [ srcDir+'/**/*.ts'] }, include: srcDir },
{ test: /\.ts$/, loader: "ts-loader", options: { reportFiles: [ srcDir+'/**/*.ts'] }, include: karma ? [srcDir, testDir] : 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 beca7f3

Please sign in to comment.