aboutsummaryrefslogtreecommitdiff
path: root/webpack.config.js
diff options
context:
space:
mode:
authorBob Zeleznik <zzzman@gmail.com>2019-04-16 00:37:50 -0400
committerBob Zeleznik <zzzman@gmail.com>2019-04-16 00:37:50 -0400
commita14e0a905897222a7cb948119a3238abb6e26e25 (patch)
tree6ba6d83518d393e1e1e1d6e3bcba6f46ce377936 /webpack.config.js
parent13ced657b7a3292e57150bf5e44412d7068b7e3d (diff)
parent0c4ceaf7a51fde6e3d1f97ee00b00b4eb1478da6 (diff)
Merge branch 'master' of https://github.com/browngraphicslab/Dash-Web
Diffstat (limited to 'webpack.config.js')
-rw-r--r--webpack.config.js19
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,