Comments (9)
把你的 package.json 和生成的文件目录发出来看看.
from antd-init.
{
"name": "antd-demo",
"version": "1.0.0",
"private": true,
"entry": {
"index": "./src/entry/index.jsx"
},
"dependencies": {
"antd": "~1.0.0",
"atool-build": "0.7.x",
"babel-plugin-antd": "0.4.x",
"es3ify-loader": "^0.2.0",
"react": "^15.0.2",
"react-dom": "^15.0.2"
},
"devDependencies": {
"babel-eslint": "^6.0.0",
"dora": "0.3.x",
"dora-plugin-hmr": "0.5.x",
"dora-plugin-livereload": "0.3.x",
"dora-plugin-proxy": "0.6.x",
"dora-plugin-webpack": "0.6.x",
"eslint": "^2.7.0",
"eslint-config-airbnb": "6.x",
"eslint-plugin-react": "4.x",
"pre-commit": "1.x"
},
"pre-commit": [
"lint"
],
"scripts": {
"start": "dora -p 8001 --plugins "webpack,hmr,proxy,livereload?enableJs=false"",
"lint": "eslint --ext .js,.jsx src",
"build": "atool-build -o ./dist/${npm_package_family}/${npm_package_name}/${npm_package_version}"
}
}
from antd-init.
最终生成的目录位置呢
from antd-init.
from antd-init.
windows 下应该不支持 ${npm_package_family}/${npm_package_name}/${npm_package_version}
这些变量,你可以考虑写死或者 google 下其他解决方案。
from antd-init.
嗯. 同上
但是试试 $npm_package_name
直接这么写看看能不能在 window 上生效
from antd-init.
npm_package_family 这些变量是放在哪里的啊或者说如何读取package.json赋值给npm_package_family 等变量的?
from antd-init.
https://docs.npmjs.com/misc/scripts#packagejson-vars
npm 提供的特性,如果 windows 上不生效,scripts 里面写死或者给 npm 去提 bug 吧。
from antd-init.
我也同样出现这种问题,写死的话怎么写法?貌似只能打包出:common.js、index.css、index.js,其他图片html都没有,怎么解决?
from antd-init.
Related Issues (20)
- 静态数据不加载,不知道如何调试 HOT 1
- How to use webpack2 customized the antd theme and icon url. HOT 4
- antd主题切换 HOT 3
- antd主题切换后自定义的css被覆盖的问题 HOT 1
- 自定义主题后,pagination组件按钮样式异常
- theme:导入报错小细节
- theme:导入报错小细节 HOT 1
- build后报错,该如何解决
- 如果我用的脚手架不是antd-init 和 dva-cli呢?该怎么处理? HOT 1
- 如何针对不同的entry做不同的modifyVars HOT 2
- 自定义iconfont路径只能用绝对路径? HOT 2
- 如何获取Icon的style值以及动态的改变style?
- 使用 parceljs ,本地部署 Iconfont 失败
- 想问下,不想修改整个主题,只想要修改某个组件的样式应该怎么做? HOT 1
- 在antd-pro中使用图标本地化时,报错
- Invalid setting font-family HOT 1
- my theme does not change help
- Translate this example to english
- 请问如果使用package.theme来自定义iconfont的路径无效,可以参考这个解决方案。
- 提错地方了,请无视 HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from antd-init.