|
|
@ -1,4 +1,5 @@ |
|
|
|
var fs = require('fs') |
|
|
|
var path = require('path') |
|
|
|
var zlib = require('zlib') |
|
|
|
var rollup = require('rollup') |
|
|
|
var uglify = require('uglify-js') |
|
|
@ -8,6 +9,10 @@ var aliasPlugin = require('rollup-plugin-alias') |
|
|
|
var baseAlias = require('./alias') |
|
|
|
var version = process.env.VERSION || require('../package.json').version |
|
|
|
|
|
|
|
if (!fs.existsSync('dist')) { |
|
|
|
fs.mkdirSync('dist') |
|
|
|
} |
|
|
|
|
|
|
|
var banner = |
|
|
|
'/*!\n' + |
|
|
|
' * Vue.js v' + version + '\n' + |
|
|
|