GithubHelp home page GithubHelp logo

yunsite / nuxtjs-electron Goto Github PK

View Code? Open in Web Editor NEW

This project forked from nurdism/nuxtjs-electron

0.0 0.0 0.0 97 KB

A utility module that helps you work with electron inside nuxt.

License: MIT License

JavaScript 100.00%

nuxtjs-electron's Introduction



Dependencies Status Dev Dependencies Status Peer Dependencies Status Downloads Version License Chat on discord

nuxtjs-electron

This is a utility module that helps you work with electron inside nuxt.

Features

  • Automagically starts/restarts electron when changes are made
  • Seamless integration with nuxt build/generate

Setup

  • Add nuxtjs-electron dependency using yarn or npm to your project
  • Add nuxtjs-electron to modules section of nuxt.config.js
  modules: [
    ['@nuxtjs/electron', {
      main: 'main.js',
      build: {
        warnings: false,
        babel: {
            presets: [ ['env', {'targets': { 'node': 7 }, 'useBuiltIns': true }] ],
            plugins: ['add-module-exports']
        },
        extend(config, options, nuxt) {
          // extend webpack config
        }
      }
    }],
  ]

Options

main - Entry point for electron main

  • Default: main.js

build.warnings - hide webpack warnings

  • Default: true

build.babel - babel-loader config

  • Default: { presets: [ ['env', {'targets': { 'node': 7 }, 'useBuiltIns': true }] ], plugins: ['add-module-exports'] }

build.extend(config, options, nuxt) - webpack config

  • @config: webpack config object
  • @options: module options object
  • @nuxt: nuxt.options object

nuxtjs-electron's People

Contributors

nurdism avatar

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.