Giter Club home page Giter Club logo

Comments (5)

halfrost avatar halfrost commented on May 25, 2024

能说一下你的环境么?比如 npm 的版本,Electron 的版本,cordova 的版本。上面你要更改一下我注释里面说的地方,打开注释再打包。

from vue-objccn.

Liubasara avatar Liubasara commented on May 25, 2024

找到错误了,main.js文件改掉注释后没有加分号...加上分号后再build一次就不报错了
但好像css文件加载不出来,在模拟器上是这样的
qq 20171113202845

我的环境
node v8.9.0
npm 5.5.1
cordova 7.1.0
electron v1.7.9
webpack 3.8.1

感谢您的及时答复!

from vue-objccn.

halfrost avatar halfrost commented on May 25, 2024

嗯嗯。。CSS有点问题。你调试一下,CSS应该报错了。能贴一下错误不?我看能不能帮你解决掉。

from vue-objccn.

Liubasara avatar Liubasara commented on May 25, 2024

1
2
打包的时候没有问题,static里也有对应的css文件,但就是访问不了,请问这与hash模式和history模式有关吗?

from vue-objccn.

halfrost avatar halfrost commented on May 25, 2024

你看你错误的输出,是在找 file:// 下的 static ,正常的应该是去找 http:// 下的吧。看上面错误,路径好像是相对路径了。如果是绝对路径就没问题。

from vue-objccn.

Related Issues (19)

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.