Skip to content

webpackConfig 增加DefinePlugin,运行失败 #355

Open
@whizbz11

Description

配置文件:
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

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions