Skip to content
This repository has been archived by the owner on Mar 13, 2022. It is now read-only.

Support writing components as Vue files #19

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions template/ui/build/script.javascript.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,19 @@ const uglify = require('uglify-es')
const buble = require('@rollup/plugin-buble')
const json = require('@rollup/plugin-json')
const { nodeResolve } = require('@rollup/plugin-node-resolve')
const commonjs = require('@rollup/plugin-commonjs')
const VuePlugin = require('rollup-plugin-vue')

const buildConf = require('./config')
const buildUtils = require('./utils')

const rollupPlugins = [
commonjs(),
nodeResolve({
extensions: ['.js'],
preferBuiltins: false
}),
VuePlugin(),
json(),
buble({
objectAssign: 'Object.assign'
Expand Down
3 changes: 3 additions & 0 deletions template/ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,13 @@
"chalk": "^2.4.2",
"rimraf": "^3.0.0",
"rollup": "^1.21.3",
"@rollup/plugin-commonjs": "^11.1.0",
"rollup-plugin-vue": "^5.0.1",
"@rollup/plugin-buble": "^0.20.0",
"@rollup/plugin-json": "^4.0.0",
"@rollup/plugin-node-resolve": "^8.0.0",
"uglify-es": "^3.3.9",
"vue-template-compiler": "^2.6.10",
"zlib": "^1.0.5"
},
"browserslist": [
Expand Down