update site

pull/471/head
tangjinzhou 2019-01-27 11:43:55 +08:00
parent 3e68a244b2
commit f516fdaaae
3 changed files with 10 additions and 8 deletions

View File

@ -24,13 +24,13 @@ class CleanUpStatsPlugin {
apply(compiler) {
compiler.hooks.done.tap('CleanUpStatsPlugin', stats => {
const { children, warnings } = stats.compilation;
const { children } = stats.compilation;
if (Array.isArray(children)) {
stats.compilation.children = children.filter(child => this.shouldPickStatChild(child));
}
if (Array.isArray(warnings)) {
stats.compilation.warnings = warnings.filter(message => this.shouldPickWarning(message));
}
// if (Array.isArray(warnings)) {
// stats.compilation.warnings = warnings.filter(message => this.shouldPickWarning(message));
// }
});
}
}

View File

@ -64,6 +64,7 @@
"@octokit/rest": "^15.4.1",
"@vue/server-test-utils": "1.0.0-beta.16",
"@vue/test-utils": "1.0.0-beta.16",
"acorn": "^6.0.5",
"autoprefixer": "^8.1.0",
"axios": "^0.18.0",
"babel-cli": "^6.26.0",
@ -161,7 +162,7 @@
"vue-server-renderer": "^2.5.16",
"vue-template-compiler": "^2.5.16",
"vue-virtual-scroller": "^0.12.0",
"webpack": "4.28.4",
"webpack": "^4.28.4",
"webpack-cli": "^3.2.1",
"webpack-dev-server": "^3.1.14",
"webpack-merge": "^4.1.1",
@ -200,6 +201,8 @@
"site/*",
"components/style.js",
"components/**/style/*",
"*.vue",
"*.md",
"dist/*",
"es/**/style/*",
"lib/**/style/*",

View File

@ -1,5 +1,4 @@
const path = require('path');
// const webpack = require('webpack')
const HtmlWebpackPlugin = require('html-webpack-plugin');
const merge = require('webpack-merge');
const baseWebpackConfig = require('./webpack.base.config');
@ -16,7 +15,7 @@ module.exports = merge(baseWebpackConfig, {
{
test: /\.less$/,
use: [
{ loader: 'style-loader' },
{ loader: 'vue-style-loader' },
{
loader: 'css-loader',
options: { sourceMap: true },
@ -26,7 +25,7 @@ module.exports = merge(baseWebpackConfig, {
},
{
test: /\.css$/,
use: ['style-loader', 'css-loader'],
use: ['vue-style-loader', 'css-loader'],
},
],
},