Coder Social home page Coder Social logo

Comments (9)

egoist avatar egoist commented on June 17, 2024

Ah, awkward, it works for me

from vuepack.

kxxoling avatar kxxoling commented on June 17, 2024

@egoist Have you done any configuration?

from vuepack.

kxxoling avatar kxxoling commented on June 17, 2024

@egoist I checked Electron support either, I guess this matters, so I recreated a new project without Electron support, and it works this time!

So is it a bug that web support and Electron support cannot works at the same time?

from vuepack.

egoist avatar egoist commented on June 17, 2024

It's not a bug, if you are using Electron it will directly serve app/dist/index.html instead of loading the remote one (http://localhost:4000/index.html) because of some limitations.

And I guess you will rarely visit http://localhost:4000 in browser either, because your app may use Electron specified API.

from vuepack.

kxxoling avatar kxxoling commented on June 17, 2024

@egoist But there's still have client folder on the side of app. Isn't it mean to support web development as well as Electron?

from vuepack.

egoist avatar egoist commented on June 17, 2024

Entry file in client folder is built to use in your Electron app

from vuepack.

kxxoling avatar kxxoling commented on June 17, 2024

@egoist I thought that was used for web development and app is used for Electron, because app is the extra folder compared to web project.

So, is there any way to start a new project for both web an Electron?

from vuepack.

egoist avatar egoist commented on June 17, 2024

@kxxoling there will always be two parts in a typical electron app, app for main process, client for renderer process, do you mean you wanna build an electron as well as a website which user can access via browser? If so I'd recommend you to separate them into two projects 🤔

from vuepack.

kxxoling avatar kxxoling commented on June 17, 2024

@egoist They may contains a lot of similar components and actions, it would be better to live in one project to share components. It could rather similar to component.ios.js and component.android.js in react-native.

from vuepack.

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.