reskript icon indicating copy to clipboard operation
reskript copied to clipboard

webpackConfig 增加DefinePlugin,运行失败

Open whizbz11 opened this issue 1 year ago • 1 comments

配置文件: finalize(webpackConfig) { webpackConfig.plugins.push( new DefinePlugin({ 'process.env.REQUEST_ENV': JSON.stringify(process.env.REQUEST_ENV), }), ); webpackConfig.module.rules.push({ test: /.md$/i, use: 'raw-loader' }); webpackConfig.module.rules.push({ test: /.html$/i, use: 'html-loader' }); // console.log('--DefinePlugin--',DefinePlugin);

        webpackConfig.resolve.fallback = {
            fs: false
        };

        return webpackConfig;
    }
},

运行会报错: Command failed, you may submit a issue to https://github.com/ecomfe/reskript/issues/new

whizbz11 avatar Feb 21 '24 07:02 whizbz11