houdini/config/webpack/environment.js

17 lines
590 B
JavaScript
Raw Normal View History

2019-11-05 22:39:13 +00:00
const { environment } = require('@rails/webpacker')
2020-05-27 22:05:25 +00:00
const ForkTsCheckerWebpackPlugin = require("fork-ts-checker-webpack-plugin");
const path = require("path");
2019-11-18 21:51:37 +00:00
const erb = require('./loaders/erb')
2019-11-05 22:39:13 +00:00
2019-11-15 22:28:55 +00:00
environment.loaders.prepend('erb', erb)
2020-05-27 22:05:25 +00:00
environment.plugins.append(
"ForkTsCheckerWebpackPlugin",
new ForkTsCheckerWebpackPlugin({
// this is a relative path to your project's TypeScript config
tsconfig: path.resolve(__dirname, "../../tsconfig.json"),
// non-async so type checking will block compilation
async: false,
})
);
2019-11-05 22:39:13 +00:00
module.exports = environment