Comments (7)
是的,我的意思是生成多个.js 文件,一个vue文件对应生成一个js文件。
这个我自己改好了,关了吧。
from weex-vue-starter-kit.
from weex-vue-starter-kit.
@hayvane run dev 是在内存跑的吧,只有build才是生成的打包文件。
from weex-vue-starter-kit.
@hayvane 请问你生成多个js怎么弄的?webpack怎么配置的,我弄了半天都没弄好,我也是做native开发的
from weex-vue-starter-kit.
@py389172739 改写你的webpack.config.js 中的entry,指定多个就可以了
eg:
function getBaseConfig () {
return {
entry: {
'XXXA': path.join(__dirname, 'src', 'your-a.vue?entry=true'),
'XXXBl': path.join(__dirname, 'src', 'your-b.vue?entry=true')
},
output: {
path: 'dist/bundlejs/',
filename: '[name].js'
},
......
.....
}
from weex-vue-starter-kit.
@hayvane 请问你是怎么生成.vue对应的.js的文件呢?
from weex-vue-starter-kit.
@hayvane 请问你是怎么生成.vue对应的.js的文件呢?
见上文snowons给出的配置
from weex-vue-starter-kit.
Related Issues (14)
- 端口改为8070以后,weexpack run web 访问不到呢 HOT 2
- Android build后 render error HOT 6
- debug使用playground扫描二维码无法连接 HOT 5
- webpack如何配置才能生成多个js文件 HOT 1
- 安卓端render error 和 network error HOT 1
- 打开 二维码 页面失败 HOT 2
- yarn 提示: [email protected]: The engine "node" is incompatible with this module HOT 2
- cnpm run dev 后打开是空白页面
- Getting more done in GitHub with ZenHub
- 能丰富一下这个例子吗? HOT 1
- render error:null HOT 1
- 关于npm run build打包后的部署 HOT 9
- 引入mint-ui后出现render error:2013 HOT 2
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 weex-vue-starter-kit.