Comments (5)
能说一下你的环境么?比如 npm 的版本,Electron 的版本,cordova 的版本。上面你要更改一下我注释里面说的地方,打开注释再打包。
from vue-objccn.
找到错误了,main.js文件改掉注释后没有加分号...加上分号后再build一次就不报错了
但好像css文件加载不出来,在模拟器上是这样的
我的环境
node v8.9.0
npm 5.5.1
cordova 7.1.0
electron v1.7.9
webpack 3.8.1
感谢您的及时答复!
from vue-objccn.
嗯嗯。。CSS有点问题。你调试一下,CSS应该报错了。能贴一下错误不?我看能不能帮你解决掉。
from vue-objccn.
打包的时候没有问题,static里也有对应的css文件,但就是访问不了,请问这与hash模式和history模式有关吗?
from vue-objccn.
你看你错误的输出,是在找 file:// 下的 static ,正常的应该是去找 http:// 下的吧。看上面错误,路径好像是相对路径了。如果是绝对路径就没问题。
from vue-objccn.
Related Issues (19)
- rm redundant code HOT 11
- 安装项目依赖项出错 HOT 3
- 提一个bug. npm run build:win 执行exe报错。 HOT 1
- cordova run ios异常 HOT 4
- cordova打包时vue-router history模式空白 HOT 5
- 仓库体积过大 HOT 2
- 图片太大 HOT 1
- 大佬 好腻害 求带
- 想问大佬一个问题 HOT 3
- please help me
- Electron 跨桌面,跨APP ? HOT 1
- getIssuesListInfo报错 HOT 3
- 数据登录问题 HOT 1
- build:mac 和build:win 都报错。 HOT 1
- vue.js能开发原生app吗 HOT 1
- 编译electron的文件存储位置有bug。会导致源程序不断重复编译。 HOT 7
- 您好,想问一下打包成app是什么原理 HOT 1
- 项目流程 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 vue-objccn.