houdini/config/webpack/environment.js

17 lines
477 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({
typescript: {
2020-05-27 22:05:25 +00:00
tsconfig: path.resolve(__dirname, "../../tsconfig.json"),
},
async: false,
})
);
2019-11-05 22:39:13 +00:00
module.exports = environment