秦
秦
已修改,谢谢指出
http://localhost:8090/admin.html http://localhost:8090/web.html webpack 想要的配置在生成首页中 ```js exports.genHtmlPlugins = function () { var baseWebpackConfig = require('./webpack.base.config'); var path = require('path') var plugins = []; Object.keys(baseWebpackConfig.entry).forEach(function (name) { plugins.push( new HtmlWebpackPlugin({ filename: isProd...
thanks for your feedback. I will fix the problem as soon as possible.
> 我的大概思路是,用正则替换掉关键词。 > > ```js > let panter = new RegExp(关键词, 'g') > 该行字符串.replace(panter, '' + 关键词 + '') > ``` > > ps:如果是vue项目,直接与v-html结合使用更爽哦~ new RegExp 要注意排除有正则含义的字符,比如用户输入 `^ $` 等。