Git Product home page Git Product logo

Comments (6)

MarshallOfSound avatar MarshallOfSound commented on June 18, 2024 1

@chenzhiguo Why do you want to lazy load it though? You aren't loading the component over HTTP, there is no file size concern here. It's literally just reading a file from the local filesystem. Lazy loading for Electron apps makes no sense?

from electron-forge-templates.

MarshallOfSound avatar MarshallOfSound commented on June 18, 2024

Uhhh, System.import is like not a thing in Electron? Why can'y you just either use require which you indicate works or use import Thing from './here'; at the top of the file?

from electron-forge-templates.

chenzhiguo avatar chenzhiguo commented on June 18, 2024

@MarshallOfSound Just to lazyload the *.vue file. If use require or import, will the file be loaded immediately?

from electron-forge-templates.

chenzhiguo avatar chenzhiguo commented on June 18, 2024

Aha...I feel you are very reasonable, you are convinced. But, if I want use it, Is required to use webpack? Do you know this one? @MarshallOfSound

from electron-forge-templates.

MarshallOfSound avatar MarshallOfSound commented on June 18, 2024

@chenzhiguo If you realllllyyyy want to lazy load even if you're literally just loading a local file 😕

You can just wrap require in a function so it isn't called immediately.

  component: () => require('./components/Login.vue')

from electron-forge-templates.

wahengchang avatar wahengchang commented on June 18, 2024

YOU guys are so funny ! lol
(commented by a guy who is looking for solution of vue-router in eletron)

from electron-forge-templates.

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.