Skip to content

Translate `.vue` files to pure JavaScript, without using Browserify.

Notifications You must be signed in to change notification settings

SkewedAspect/grunt-vueify

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

grunt-vueify

Translate .vue files to pure JavaScript, without using Browserify.

This uses the Compiler API from Vueify, and is useful when using Vue.js with Electron.

Installation

npm install --save-dev vueify grunt-vueify

Usage

Add something like the following to your Gruntfile.js:

grunt.initConfig({
	vueify: {
		components: {
			files: [
				{
					expand: true,
					src: 'components/**/*.vue',
					dest: 'dist/',
					ext: '.vue.js'
				}
			]
		}
	},
	// ...
});

grunt.loadNpmTasks('grunt-vueify');

grunt.registerTask('default', ['vueify']);

Options

Configuring Vueify

To configure Vueify, you should create a vue.config.js file, as described in the Vuefiy documentation.

About

Translate `.vue` files to pure JavaScript, without using Browserify.

Resources

Stars

Watchers

Forks

Packages

No packages published