sutty/config/webpack/development.js

20 lines
527 B
JavaScript
Raw Normal View History

process.env.NODE_ENV = process.env.NODE_ENV || 'development'
const ForkTsCheckerWebpackPlugin = require("fork-ts-checker-webpack-plugin");
const path = require("path");
const environment = require('./environment')
environment.plugins.append(
"ForkTsCheckerWebpackPlugin",
new ForkTsCheckerWebpackPlugin({
typescript: {
configFile: path.resolve(__dirname, "../../tsconfig.json"),
},
// non-async so type checking will block compilation
async: false,
})
);
module.exports = environment.toWebpackConfig()