Coder Social home page Coder Social logo

Comments (9)

soda-x avatar soda-x commented on June 15, 2024

把你的 package.json 和生成的文件目录发出来看看.

from antd-init.

niwota865 avatar niwota865 commented on June 15, 2024

{
"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.

soda-x avatar soda-x commented on June 15, 2024

最终生成的目录位置呢

from antd-init.

niwota865 avatar niwota865 commented on June 15, 2024

目录异常图片

from antd-init.

sorrycc avatar sorrycc commented on June 15, 2024

windows 下应该不支持 ${npm_package_family}/${npm_package_name}/${npm_package_version} 这些变量,你可以考虑写死或者 google 下其他解决方案。

from antd-init.

soda-x avatar soda-x commented on June 15, 2024

嗯. 同上

但是试试 $npm_package_name 直接这么写看看能不能在 window 上生效

from antd-init.

niwota865 avatar niwota865 commented on June 15, 2024

npm_package_family 这些变量是放在哪里的啊或者说如何读取package.json赋值给npm_package_family 等变量的?

from antd-init.

afc163 avatar afc163 commented on June 15, 2024

https://docs.npmjs.com/misc/scripts#packagejson-vars

npm 提供的特性,如果 windows 上不生效,scripts 里面写死或者给 npm 去提 bug 吧。

from antd-init.

lengziyu avatar lengziyu commented on June 15, 2024

我也同样出现这种问题,写死的话怎么写法?貌似只能打包出:common.js、index.css、index.js,其他图片html都没有,怎么解决?

from antd-init.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.