houdini/config/webpack/environment.js

17 lines
477 B
JavaScript
Raw Normal View History

2019-11-05 16:39:13 -06:00
const { environment } = require('@rails/webpacker')
2020-05-27 17:05:25 -05:00
const ForkTsCheckerWebpackPlugin = require("fork-ts-checker-webpack-plugin");
const path = require("path");
2019-11-18 15:51:37 -06:00
const erb = require('./loaders/erb')
2019-11-05 16:39:13 -06:00
2019-11-15 16:28:55 -06:00
environment.loaders.prepend('erb', erb)
2020-05-27 17:05:25 -05:00
environment.plugins.append(
"ForkTsCheckerWebpackPlugin",
new ForkTsCheckerWebpackPlugin({
typescript: {
2020-05-27 17:05:25 -05:00
tsconfig: path.resolve(__dirname, "../../tsconfig.json"),
},
async: false,
})
);
2019-11-05 16:39:13 -06:00
module.exports = environment