mirror of
https://github.com/hansputera/tiktok-dl.git
synced 2026-04-06 04:01:57 +02:00
21 lines
664 B
JavaScript
21 lines
664 B
JavaScript
const webpack = require('webpack');
|
|
const withTM = require('next-transpile-modules')(['tiktok-dl-core']);
|
|
const WindiCSSWebpackPlugin = require('windicss-webpack-plugin');
|
|
|
|
const {parsed: cusEnv} = require('dotenv').config({
|
|
path: require('path').resolve(__dirname, '..', '..', '.env'),
|
|
});
|
|
|
|
module.exports = withTM({
|
|
reactStrictMode: true,
|
|
experimental: {esmExternals: true},
|
|
webpack(config) {
|
|
// adding windicss plugin
|
|
config.plugins.push(new WindiCSSWebpackPlugin());
|
|
if (typeof cusEnv !== 'undefined') {
|
|
config.plugins.push(new webpack.EnvironmentPlugin(cusEnv));
|
|
}
|
|
return config;
|
|
},
|
|
});
|