mirror of
https://github.com/barthuijgen/factorio-sites.git
synced 2025-01-05 13:20:27 +02:00
22 lines
629 B
JavaScript
Vendored
22 lines
629 B
JavaScript
Vendored
/* eslint-disable @typescript-eslint/no-var-requires */
|
|
|
|
// To be included in dependencies, chakra-ui depends on it but has it as peer dependency
|
|
require("framer-motion");
|
|
|
|
module.exports = {
|
|
poweredByHeader: false,
|
|
reactStrictMode: true,
|
|
assetPrefix: process.env.ASSET_PREFIX ? process.env.ASSET_PREFIX : "",
|
|
webpack(config, options) {
|
|
const { dev, isServer } = options;
|
|
|
|
// Do not run type checking twice
|
|
if (dev && isServer) {
|
|
const ForkTsCheckerWebpackPlugin = require("fork-ts-checker-webpack-plugin");
|
|
config.plugins.push(new ForkTsCheckerWebpackPlugin());
|
|
}
|
|
|
|
return config;
|
|
},
|
|
};
|