diff --git a/webpack.common.ts b/webpack.common.ts index 2e56894a75..b42de0b9d8 100644 --- a/webpack.common.ts +++ b/webpack.common.ts @@ -11,7 +11,7 @@ const { STATIC_DIRECTORY, BASE_PATH, API_BASE_PATH, -} = require('./src/utils/env') +} = require('./src/utils/env.ts') const MONACO_DIR = path.resolve(__dirname, './node_modules/monaco-editor') diff --git a/webpack.dev.ts b/webpack.dev.ts index 5fe0217583..5ce3e1019f 100644 --- a/webpack.dev.ts +++ b/webpack.dev.ts @@ -3,7 +3,7 @@ const mergeDev = require('webpack-merge').merge const commonDev = require('./webpack.common.ts') const PORT = parseInt(process.env.PORT, 10) || 8080 const PUBLIC = process.env.PUBLIC || undefined -const BASE_PATH_DEV = require('./src/utils/env').BASE_PATH +const BASE_PATH_DEV = require('./src/utils/env.ts').BASE_PATH const ForkTsCheckerWebpackPlugin = require('fork-ts-checker-webpack-plugin') module.exports = mergeDev(commonDev, { diff --git a/webpack.fast.ts b/webpack.fast.ts index 0539ed15ed..cc86131e81 100644 --- a/webpack.fast.ts +++ b/webpack.fast.ts @@ -1,7 +1,7 @@ // utils const common = require('./webpack.common.ts') const merge = require('webpack-merge').merge -const STATIC_DIR = require('./src/utils/env').STATIC_DIRECTORY +const STATIC_DIR = require('./src/utils/env.ts').STATIC_DIRECTORY module.exports = merge(common, { mode: 'none', diff --git a/webpack.lighthouse.ts b/webpack.lighthouse.ts index c97fefafcd..75ebebea36 100644 --- a/webpack.lighthouse.ts +++ b/webpack.lighthouse.ts @@ -7,7 +7,7 @@ const commonPath = require('path') const CssMinimizerPlugin = require('css-minimizer-webpack-plugin') const TerserJSPlugin = require('terser-webpack-plugin') -const DIRECTORY_STATIC = require('./src/utils/env').STATIC_DIRECTORY +const DIRECTORY_STATIC = require('./src/utils/env.ts').STATIC_DIRECTORY module.exports = mergeWebpack(commonWebpack, { mode: 'production', diff --git a/webpack.prod.ts b/webpack.prod.ts index 1eee57a2ca..43358fc365 100644 --- a/webpack.prod.ts +++ b/webpack.prod.ts @@ -8,7 +8,7 @@ const CssMinimizerPlugin = require('css-minimizer-webpack-plugin') const TerserJSPlugin = require('terser-webpack-plugin') const ForkTsCheckerWebpackPlugin = require('fork-ts-checker-webpack-plugin') -const DIRECTORY_STATIC = require('./src/utils/env').STATIC_DIRECTORY +const DIRECTORY_STATIC = require('./src/utils/env.ts').STATIC_DIRECTORY module.exports = mergeWebpack(commonWebpack, { mode: 'production',