All Projects → BoltDoggy → Parcel Plugin Vue

BoltDoggy / Parcel Plugin Vue

⚠️ parcel-bundler/parcel @1.7.0 support Vue Now. This plugin will be not recommended.

Programming Languages

javascript
184084 projects - #8 most used programming language

Labels

Projects that are alternatives of or similar to Parcel Plugin Vue

Angular Parcel Boilerplate
Parcel template for using Angular.io
Stars: ✭ 15 (-92.96%)
Mutual labels:  parcel
Parcel Rails
Integration of Parcel Javascript module bundler with Rails
Stars: ✭ 67 (-68.54%)
Mutual labels:  parcel
Peerjs
Simple peer-to-peer with WebRTC
Stars: ✭ 9,888 (+4542.25%)
Mutual labels:  parcel
Parcel Plugin Angular
Complete Angular support for Parcel
Stars: ✭ 29 (-86.38%)
Mutual labels:  parcel
Phaser.io V3 Boilerplate
🕹 Phaser.io v3 minimal Boilerplate w/ parceljs bundler ( ES6 )
Stars: ✭ 48 (-77.46%)
Mutual labels:  parcel
Template.js
A javascript template engine, simple, easy & extras, support webpack, rollup, parcel, browserify, fis and gulp
Stars: ✭ 1,201 (+463.85%)
Mutual labels:  parcel
Indian Courier Api
API to track parcel from various Indian Logistics Providers
Stars: ✭ 26 (-87.79%)
Mutual labels:  parcel
Rust Webapp Starter
Rust single page webapp written in actix-web with vuejs.
Stars: ✭ 151 (-29.11%)
Mutual labels:  parcel
Panic Overlay
Displays JS errors in browsers. Shows sources. Use with any framework. 💥✨
Stars: ✭ 50 (-76.53%)
Mutual labels:  parcel
Svelte Template
🚧 An easy-to-use Svelte template! (Svelte + Typescript + Parcel + Express) 2020
Stars: ✭ 88 (-58.69%)
Mutual labels:  parcel
Wasm Dev Book
Rust を用いた WebAssembly の開発環境を構築する手法を紹介する本.
Stars: ✭ 36 (-83.1%)
Mutual labels:  parcel
Svelte Typescript Parcel
Svelte + Typescript + Parcel
Stars: ✭ 48 (-77.46%)
Mutual labels:  parcel
Purescript React Realworld
A real-world application demonstrating PureScript and React
Stars: ✭ 81 (-61.97%)
Mutual labels:  parcel
Parcel Plugin Cep
Zero configuration CEP extension builder for Parcel
Stars: ✭ 29 (-86.38%)
Mutual labels:  parcel
Elm Batteries
Learn how Elm, Parcel, Cypress and Netlify work together. Get started with Elm navigation, routes, remote data and decoder.
Stars: ✭ 108 (-49.3%)
Mutual labels:  parcel
Weather Preactpi
A tiny UI for daily weather forcasts ⛈
Stars: ✭ 13 (-93.9%)
Mutual labels:  parcel
Parcel Plugin Sw Precache
A Parcel plugin for generating a service worker that precaches resources.
Stars: ✭ 70 (-67.14%)
Mutual labels:  parcel
15 Puzzle
The 15-puzzle is a sliding puzzle that consists of a frame of numbered square tiles in random order with one tile missing, built in react
Stars: ✭ 161 (-24.41%)
Mutual labels:  parcel
Fast
Develop, build, deploy, redeploy, and teardown frontend projects fast.
Stars: ✭ 126 (-40.85%)
Mutual labels:  parcel
Compiled
A familiar and performant compile time CSS-in-JS library for React.
Stars: ✭ 1,235 (+479.81%)
Mutual labels:  parcel

❗️❗️❗️parcel-bundler/parcel @1.7.0 support Vue Now ❗️❗️❗️

⚠️ This plugin will be not recommended.

Maybe I will be forgotten, but I will be continue.

Nice to meet you at parcel-plugin-eslint.

parcel-plugin-vue npm david-dm

Stability: 1 - Experimental This feature is still under active development and subject to non-backwards compatible changes, or even removal, in any future version. Use of the feature is not recommended in production environments.

Make Parcel support Vue single file components.

【What's the Parcel】【What's the Vue】【What's the Vue single file components】

Using Plugin

Using plugins in Parcel could not be any simpler. All you need to do is install them and save in your package.json. Plugins should be named with the prefix parcel-plugin-, e.g. parcel-plugin-foo. Any dependencies listed in package.json with this prefix will be automatically loaded during initialization.

You must node >= 8

npm i parcel-plugin-vue -D

# Maybe you should:
npm i parcel-bundler -D

npm i vue -S
npm i vue-template-compiler -D # version must be eq version of vue

# If no '.babelrc' file, you should
npm i babel-plugin-transform-runtime babel-preset-es2015 -D

Examples

Make some issues clear

CSS Extraction

You can make a file named 'vue.config.js', edit and save it

module.exports = {
    // If extractCSS is always true, the 'Hot module replacement' will not work.
    extractCSS: process.env.NODE_ENV === 'production'
};

For other attributes of 'vue.config.js', you can refer to https://github.com/vuejs/vueify#configuring-options

Custom Compilers

The plugin for Vue is using built-in compiler compiles the other lang.

Those compilers are:

coffee,babel less,sass,scss,stylus jade,pug

That will allow you to use other parcel plugins to process a part of a Vue component at next version.

But now, you need do it yourself, I'm sorry for this.

You can make a file named 'vue.config.js', edit and save it

var TypeScriptAsset = require('parcel-bundler/src/assets/TypeScriptAsset.js');

module.exports = {
    customCompilers: {
        ts: function (content, cb, compiler, filePath) {
            let ts = new TypeScriptAsset(filePath, {}, {});
            ts.contents = content;
            ts.process().then((res) => {
                cb(null, res.js);
            });
        }
    }
};

For 'vue.config.js', you can refer to https://github.com/vuejs/vueify#configuring-options

This Plugin only support '*.vue'

When you meet this:

[Vue warn]: You are using the runtime-only build of Vue where the template compiler is not available. Either pre-compile the templates into render functions, or use the compiler-included build.

Maybe in your code:

import Vue from 'vue';

new Vue({
  el: '#app',
  template: '...', // This is reason for Error 
  ...
});

You should change to:

import Vue from 'vue/dist/vue.esm.js';

new Vue({
  el: '#app',
  template: '...',
  ...
});

or We recommend more:

import Vue from 'vue';
import YourVue from 'YourVue.vue';

const app = new Vue({
  el: '#app',
  render: h => h(YourVue)
});
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].