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(
|
2020-06-23 16:53:28 -05:00
|
|
|
"ForkTsCheckerWebpackPlugin",
|
|
|
|
new ForkTsCheckerWebpackPlugin({
|
|
|
|
typescript: {
|
2020-05-27 17:05:25 -05:00
|
|
|
tsconfig: path.resolve(__dirname, "../../tsconfig.json"),
|
2020-06-23 16:53:28 -05:00
|
|
|
},
|
|
|
|
async: false,
|
|
|
|
})
|
|
|
|
);
|
2019-11-05 16:39:13 -06:00
|
|
|
module.exports = environment
|