use yarn lock package.json version

This commit is contained in:
cookfront
2017-03-24 10:31:45 +08:00
parent 8459638b79
commit 7dba3bab29
8 changed files with 7040 additions and 17 deletions

View File

@@ -6,6 +6,7 @@ var striptags = require('./strip-tags');
var ExtractTextPlugin = require('extract-text-webpack-plugin');
var version = require('../package.json').version;
var getPoastcssPlugin = require('./utils/postcss_pipe');
var ProgressBarPlugin = require('progress-bar-webpack-plugin');
function convert(str) {
str = str.replace(/(&#x)(\w{4});/gi, function($0) {
@@ -74,6 +75,7 @@ module.exports = {
},
devtool: 'source-map',
plugins: [
new ProgressBarPlugin(),
new webpack.LoaderOptionsPlugin({
minimize: true,
options: {
@@ -82,9 +84,6 @@ module.exports = {
presets: ['es2015'],
plugins: ['transform-runtime', 'transform-vue-jsx']
},
eslint: {
formatter: require('eslint-friendly-formatter')
},
vue: {
autoprefixer: false,
postcss: getPoastcssPlugin