Skip to content

Commit

Permalink
webpack config: speed up build by avoiding to compile node_modules th…
Browse files Browse the repository at this point in the history
…ings
  • Loading branch information
tchakabam committed Aug 19, 2018
1 parent 9b7be2b commit 0a8efad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const runAnalyzer = !!env.ANALYZE;

const baseConfig = {
mode: 'development',
entry: './src/hls.js',
entry: './src/hls',
resolve: {
// Add `.ts` as a resolvable extension.
extensions: [".ts", ".js"]
Expand All @@ -26,7 +26,7 @@ const baseConfig = {
rules: [
// all files with a `.ts` extension will be handled by `ts-loader`
{ test: /\.ts?$/, loader: "ts-loader" },
{ test: /\.js?$/, loader: "ts-loader" }
{ test: /\.js?$/, exclude: [/node_modules/], loader: "ts-loader" },
]
}
};
Expand Down

0 comments on commit 0a8efad

Please sign in to comment.