Skip to content

Commit f516fda

Browse files
committed
update site
1 parent 3e68a24 commit f516fda

File tree

3 files changed

+10
-8
lines changed

3 files changed

+10
-8
lines changed

antd-tools/utils/CleanUpStatsPlugin.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,13 @@ class CleanUpStatsPlugin {
2424

2525
apply(compiler) {
2626
compiler.hooks.done.tap('CleanUpStatsPlugin', stats => {
27-
const { children, warnings } = stats.compilation;
27+
const { children } = stats.compilation;
2828
if (Array.isArray(children)) {
2929
stats.compilation.children = children.filter(child => this.shouldPickStatChild(child));
3030
}
31-
if (Array.isArray(warnings)) {
32-
stats.compilation.warnings = warnings.filter(message => this.shouldPickWarning(message));
33-
}
31+
// if (Array.isArray(warnings)) {
32+
// stats.compilation.warnings = warnings.filter(message => this.shouldPickWarning(message));
33+
// }
3434
});
3535
}
3636
}

package.json

+4-1
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@
6464
"@octokit/rest": "^15.4.1",
6565
"@vue/server-test-utils": "1.0.0-beta.16",
6666
"@vue/test-utils": "1.0.0-beta.16",
67+
"acorn": "^6.0.5",
6768
"autoprefixer": "^8.1.0",
6869
"axios": "^0.18.0",
6970
"babel-cli": "^6.26.0",
@@ -161,7 +162,7 @@
161162
"vue-server-renderer": "^2.5.16",
162163
"vue-template-compiler": "^2.5.16",
163164
"vue-virtual-scroller": "^0.12.0",
164-
"webpack": "4.28.4",
165+
"webpack": "^4.28.4",
165166
"webpack-cli": "^3.2.1",
166167
"webpack-dev-server": "^3.1.14",
167168
"webpack-merge": "^4.1.1",
@@ -200,6 +201,8 @@
200201
"site/*",
201202
"components/style.js",
202203
"components/**/style/*",
204+
"*.vue",
205+
"*.md",
203206
"dist/*",
204207
"es/**/style/*",
205208
"lib/**/style/*",

webpack.config.js

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
const path = require('path');
2-
// const webpack = require('webpack')
32
const HtmlWebpackPlugin = require('html-webpack-plugin');
43
const merge = require('webpack-merge');
54
const baseWebpackConfig = require('./webpack.base.config');
@@ -16,7 +15,7 @@ module.exports = merge(baseWebpackConfig, {
1615
{
1716
test: /\.less$/,
1817
use: [
19-
{ loader: 'style-loader' },
18+
{ loader: 'vue-style-loader' },
2019
{
2120
loader: 'css-loader',
2221
options: { sourceMap: true },
@@ -26,7 +25,7 @@ module.exports = merge(baseWebpackConfig, {
2625
},
2726
{
2827
test: /\.css$/,
29-
use: ['style-loader', 'css-loader'],
28+
use: ['vue-style-loader', 'css-loader'],
3029
},
3130
],
3231
},

0 commit comments

Comments
 (0)