![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
mior-react-scripts
Advanced tools
基于react-scripts的小改造。
module.exports = {
// 打包之前额外要做的工作,主要是在prod中
beforePack: function(webpack, fs) {
},
// 多入口配置
entryList: [
{
name: "index",
path: "index.js",
templatePath: "index.html"
},
{
name: "login",
path: "login.js",
templatePath: "login.html"
},
...
],
// 起别名
alias: {
"Component": path.resolve(__dirname, 'src/component/')
}
}
PORT=3003
myProxy=http://localhost:6002
TITLE=代账宝
{
"dependencies": {
"antd": "^2.7.4",
"axios": "^0.16.1",
"prop-types": "^15.5.10",
"antd-css-rewrite": "^1.0.0",
"react-router": "^3.0.2"
}
}
默认react及react-dom是有的
主要用来解决最终项目的URL:http://xxx.com/xxx
,xxx这个目录下,而非http://xxx.com
。
像之前代账宝使用中,webpack.config.prod.js中,有这样的一段配置
{
publicPath: "/dzb"
}
我在这个配置中,未改,那么怎么实现上面的功能呢?很容易(读源码还是需要费点时间的),在package.json中新增homepage
字段:
{
"homepage": "dzb"
}
这样写即可。
create-react-app 要创建的目录名称 --scripts-version mior-react-scripts
FAQs
基于react-scripts的小改造,让其支持antd及less
The npm package mior-react-scripts receives a total of 1 weekly downloads. As such, mior-react-scripts popularity was classified as not popular.
We found that mior-react-scripts demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.