const merge = require('webpack-merge'); const common = require('./webpack.base.config'); const HtmlWebpackPlugin = require('html-webpack-plugin'); const path = require('path'); module.exports = merge(common, { context: path.resolve(__dirname,"../src"), entry: { client: "./entry.client.js", }, plugins:[ new HtmlWebpackPlugin({ template: './index.html', filename: 'index.html' }) ] });
context 和path.resolve 不冲突
最新推荐文章于 2022-01-25 15:02:18 发布