diff options
author | ab <abdullah_ahmed@brown.edu> | 2019-04-19 17:06:56 -0400 |
---|---|---|
committer | ab <abdullah_ahmed@brown.edu> | 2019-04-19 17:06:56 -0400 |
commit | d77951f2f29b5b7b4869128116c3627d77e2c73b (patch) | |
tree | 81a0a02dc59af308ec322920a2060ac1b53d15f2 /webpack.config.js | |
parent | be1976fb0ba33064978ee973993b3a2316cdf43c (diff) | |
parent | ecae4ae106be3e07471208cb93ec0965548d2d12 (diff) |
Merge commit 'ecae4ae' into new_search
Diffstat (limited to 'webpack.config.js')
-rw-r--r-- | webpack.config.js | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/webpack.config.js b/webpack.config.js index 574401807..c08742272 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -1,6 +1,7 @@ var path = require('path'); var webpack = require('webpack'); const CopyWebpackPlugin = require("copy-webpack-plugin"); +const ForkTsCheckerWebpackPlugin = require("fork-ts-checker-webpack-plugin"); module.exports = { mode: 'development', @@ -11,6 +12,9 @@ module.exports = { inkControls: ["./src/mobile/InkControls.tsx", 'webpack-hot-middleware/client?reload=true'], imageUpload: ["./src/mobile/ImageUpload.tsx", 'webpack-hot-middleware/client?reload=true'], }, + optimization: { + noEmitOnErrors: true + }, devtool: "source-map", node: { fs: 'empty', @@ -30,17 +34,10 @@ module.exports = { module: { rules: [ { - test: [/\.tsx?$/, /\.ts?$/,], - enforce: 'pre', + test: [/\.tsx?$/], use: [ - { - loader: "tslint-loader", - } + { loader: 'ts-loader', options: { transpileOnly: true } } ] - }, { - test: [/\.tsx?$/, /\.ts?$/,], - loader: "awesome-typescript-loader", - include: path.join(__dirname, 'src') }, { test: /\.scss|css$/, @@ -78,9 +75,11 @@ module.exports = { }, plugins: [ new CopyWebpackPlugin([{ from: "deploy", to: path.join(__dirname, "build") }]), + new ForkTsCheckerWebpackPlugin({ + tslint: true, useTypescriptIncrementalApi: true + }), new webpack.optimize.OccurrenceOrderPlugin(), new webpack.HotModuleReplacementPlugin(), - new webpack.NoEmitOnErrorsPlugin() ], devServer: { compress: false, |