Authored by yyq

update package

... ... @@ -39,7 +39,6 @@
"md5": "^2.1.0",
"moment": "^2.14.1",
"morgan": "^1.7.0",
"oneapm": "^1.2.20",
"passport": "^0.3.2",
"passport-douban": "0.0.1",
"passport-local": "^1.0.0",
... ... @@ -61,48 +60,46 @@
"yoho-zookeeper": "^1.0.8"
},
"devDependencies": {
"autoprefixer": "^6.3.6",
"autoprefixer": "^8.3.0",
"babel-core": "^6.26.0",
"babel-loader": "^7.1.2",
"babel-plugin-transform-regenerator": "^6.26.0",
"babel-plugin-transform-runtime": "^6.23.0",
"babel-preset-env": "^1.6.1",
"babel-preset-es2015": "^6.24.1",
"babel-runtime": "^6.26.0",
"bootstrap": "^3.3.7",
"css-loader": "^0.27.3",
"css-loader": "^0.28.11",
"cssnano": "^3.10.0",
"eslint": "^3.16.0",
"eslint": "^4.19.1",
"eslint-config-yoho": "^1.0.9",
"eslint-loader": "^1.6.3",
"extract-text-webpack-plugin": "^4.0.0-beta.0",
"handlebars": "4.0.5",
"handlebars-loader": "^1.4.0",
"happypack": "^5.0.0-beta.3",
"handlebars-loader": "^1.7.0",
"husky": "^0.11.4",
"jquery-ui": "^1.12.1",
"nodemon": "1.9.2",
"postcss-assets": "^4.0.1",
"postcss-cachebuster": "^0.1.3",
"postcss-calc": "^5.3.1",
"nodemon": "^1.17.3",
"postcss": "^6.0.21",
"postcss-assets": "^5.0.0",
"postcss-calc": "^6.0.1",
"postcss-center": "^1.0.0",
"postcss-clearfix": "^1.0.0",
"postcss-clearfix": "^2.0.1",
"postcss-crip": "^2.0.1",
"postcss-import": "^9.1.0",
"postcss-import": "^11.1.0",
"postcss-loader": "^2.1.4",
"postcss-opacity": "^4.0.0",
"postcss-position": "^0.5.0",
"postcss-pxtorem": "^4.0.0",
"postcss-scss": "^1.0.2",
"postcss-short": "^3.0.3",
"postcss-opacity": "^5.0.0",
"postcss-position": "^1.0.0",
"postcss-scss": "^1.0.5",
"postcss-short": "^4.1.0",
"postcss-sprites": "^4.2.0",
"postcss-use": "^2.3.0",
"precss": "^1.4.0",
"regenerator-runtime": "^0.11.1",
"postcss-use": "^3.0.0",
"precss": "^3.1.2",
"rewire": "^2.5.1",
"shelljs": "^0.7.0",
"style-loader": "^0.16.0",
"stylelint": "^8.4.0",
"stylelint-config-yoho": "^1.2.11",
"shelljs": "^0.8.1",
"style-loader": "^0.21.0",
"stylelint": "^9.2.0",
"stylelint-config-yoho": "^1.3.0",
"stylelint-formatter-table": "^1.0.3",
"webpack": "^4.6.0",
"webpack-cli": "^2.0.15",
... ...
... ... @@ -6,20 +6,14 @@
'use strict';
const os = require('os');
const path = require('path');
const shelljs = require('shelljs');
const _ = require('lodash');
const webpack = require('webpack');
const HappyPack = require('happypack');
const ExtractTextPlugin = require('extract-text-webpack-plugin');
const scss = require('postcss-scss');
const postcssConfig = require('./postcss.config.js');
const happyThreadPool = HappyPack.ThreadPool({ // eslint-disable-line
size: os.cpus().length
});
const hbsLoader = {
loader: 'handlebars-loader',
options: {
... ... @@ -108,16 +102,14 @@ module.exports = (env) => {
test: /\.js$/,
exclude: [/node_modules/],
use: [{
loader: 'happypack/loader?id=js'
loader: 'babel-loader'
}]
}, {
test: /\.css$/,
use: cssLoader(env, 'css')
}, {
test: /\.hbs$/,
use: [{
loader: 'happypack/loader?id=hbs'
}]
use: hbsLoader
}]
},
resolve: {
... ... @@ -161,15 +153,10 @@ module.exports = (env) => {
maxAssetSize: 512000
},
plugins: [
new HappyPack({
id: 'js',
threadPool: happyThreadPool,
loaders: ['babel-loader'],
}),
new HappyPack({
id: 'hbs',
threadPool: happyThreadPool,
loaders: [hbsLoader]
new webpack.LoaderOptionsPlugin({
options: {
handlebarsLoader: {}
}
}),
new webpack.ProvidePlugin({
$: 'yoho-jquery',
... ...
This diff could not be displayed because it is too large.