Skip to content

Commit

Permalink
chore: 修改craco注入资源路径
Browse files Browse the repository at this point in the history
  • Loading branch information
wangshan committed Apr 1, 2022
1 parent 5cf19ad commit 7595fa8
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions craco.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* @Author: wangshan
* @Date: 2022-02-26 02:21:24
* @LastEditors: wangshan
* @LastEditTime: 2022-04-01 16:42:54
* @LastEditTime: 2022-04-01 17:17:02
* @Description:
*/
const path = require("path");
Expand All @@ -14,15 +14,10 @@ module.exports = {
alias: {
"@": pathRsolve("src"),
},

plugins: [
// new HtmlWebpackPlugin({
// title: "RTodo-App",
// filename: "./public/index.html",
// // template: "./public/index.html",
// base: "/resume",
// }),
],
configure: (webpackConfig, { env, paths }) => {
webpackConfig.output.publicPath = "/Rtodomvc";
return webpackConfig;
},
},
plugins: [
{
Expand Down

0 comments on commit 7595fa8

Please sign in to comment.