Giter Club home page Giter Club logo

vue-next-webpack-preview's Introduction

ARCHIVED

To start a Vue 3 project, use Vite or vue-cli (if for some reason you still want to use webpack).

vue-next-webpack-preview's People

Contributors

bfreeds avatar cawa-93 avatar drmabuse23 avatar ikmrgrv avatar jiangying000 avatar mrsunshyne avatar nek4life avatar ryo-utsunomiya avatar sodatea avatar yyx990803 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

vue-next-webpack-preview's Issues

Typescript support

I am adding Typescript and I am not certain what the shim for *.vue files should be? My best guess is:

// shims-vue.d.ts
declare module '*.vue' {
  import { Component } from 'vue'
  const component: Component
  export default component
}

does anyone know if this is correct?

"development" build fails to load

Not sure if this is a bug or intended behaviour:

When I run webpack without --env.prod, and host it using a simple http server (ie, lite-server), the page fails to load.

Paused on exception
TypeError: Cannot read property 'instances' of undefined.

image

[Question] How to enable runtime template compilation

Vue warn]: Component provides template but the build of Vue you are running does not support runtime template compilation. Either use the full build or pre-compile the template using Vue CLI.

What is the best way to enable runtime template compilation? So that components can be registered at runtime using app.component('name',{})

I have tried editing webpack.config.js , changing the alias to 'vue': 'vue/dist/vue.esm.js', but to no effect.

[Question] How to access global variables (window.x) in Vue 3 templates?

In Vue 2, one could do this

main.js

   Vue.prototype.window = window
    window.org = 'Santa'

Without anything added to vue.config.js, this worked in any Vue template:

    window.org {{ window.org }}

With Vue 3, this errors with
TypeError: Cannot read property 'org' of undefined

How to access global variables (window.x) in Vue 3 templates?

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.