Skip to content

Commit 8cbb12c

Browse files
author
Guillaume Chau
committed
chore: upgrade deps
1 parent 0ec4845 commit 8cbb12c

File tree

6 files changed

+2933
-2937
lines changed

6 files changed

+2933
-2937
lines changed

docs-src/.postcssrc.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
module.exports = {
2+
plugins: {
3+
'autoprefixer': {},
4+
},
5+
}

docs-src/package.json

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,11 @@
2020
"cross-env": "^5.0.0",
2121
"css-loader": "^0.28.0",
2222
"file-loader": "^1.1.0",
23-
"style-loader": "^0.19.0",
24-
"vue-loader": "^13.0.0",
23+
"postcss-loader": "^2.1.5",
24+
"vue-loader": "^15.2.0",
2525
"vue-template-compiler": "^2.1.0",
26-
"webpack": "^3.8.0",
27-
"webpack-dev-server": "^2.9.3"
26+
"webpack": "^4.10.0",
27+
"webpack-cli": "^2.1.5",
28+
"webpack-dev-server": "^3.1.0"
2829
}
2930
}

docs-src/webpack.config.js

Lines changed: 33 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,80 +1,78 @@
1-
var path = require('path')
2-
var webpack = require('webpack')
1+
const path = require('path')
2+
const webpack = require('webpack')
3+
const VueLoaderPlugin = require('vue-loader/lib/plugin')
34

45
module.exports = {
6+
mode: 'development',
57
entry: './src/main.js',
68
output: {
79
path: path.resolve(__dirname, '../docs'),
810
publicPath: '/',
9-
filename: 'build.js'
11+
filename: 'build.js',
1012
},
1113
module: {
1214
rules: [
1315
{
1416
test: /\.vue$/,
1517
loader: 'vue-loader',
16-
options: {
17-
loaders: {
18-
// Since sass-loader (weirdly) has SCSS as its default parse mode, we map
19-
// the "scss" and "sass" values for the lang attribute to the right configs here.
20-
// other preprocessors should work out of the box, no loader config like this nessessary.
21-
'scss': 'vue-style-loader!css-loader!sass-loader',
22-
'sass': 'vue-style-loader!css-loader!sass-loader?indentedSyntax'
23-
}
24-
// other vue-loader options go here
25-
}
2618
},
2719
{
2820
test: /\.js$/,
2921
loader: 'babel-loader',
30-
exclude: /node_modules/
22+
exclude: /node_modules/,
3123
},
3224
{
3325
test: /\.(png|jpg|gif|svg)$/,
3426
loader: 'file-loader',
3527
options: {
36-
name: '[name].[ext]?[hash]'
37-
}
28+
name: '[name].[ext]?[hash]',
29+
},
3830
},
3931
{
4032
test: /\.css$/,
41-
loader: 'style-loader!css-loader'
42-
}
43-
]
33+
use: [
34+
'vue-style-loader',
35+
'css-loader',
36+
{
37+
loader: 'postcss-loader',
38+
options: {
39+
config: {
40+
path: path.resolve(__dirname, '.postcssrc.js'),
41+
},
42+
},
43+
},
44+
],
45+
},
46+
],
4447
},
4548
resolve: {
4649
alias: {
47-
'vue$': 'vue/dist/vue.common.js'
48-
}
50+
'vue$': 'vue/dist/vue.common.js',
51+
},
4952
},
53+
plugins: [
54+
new VueLoaderPlugin(),
55+
],
5056
devServer: {
5157
historyApiFallback: true,
5258
noInfo: true,
53-
contentBase: path.join(__dirname, "..", "docs"),
59+
contentBase: path.join(__dirname, '..', 'docs'),
5460
},
5561
performance: {
56-
hints: false
62+
hints: false,
5763
},
58-
devtool: '#eval-source-map'
64+
devtool: '#eval-source-map',
5965
}
6066

6167
if (process.env.NODE_ENV === 'production') {
68+
module.exports.mode = 'production'
6269
module.exports.devtool = '#source-map'
6370
// http://vue-loader.vuejs.org/en/workflow/production.html
6471
module.exports.plugins = (module.exports.plugins || []).concat([
6572
new webpack.DefinePlugin({
6673
'process.env': {
67-
NODE_ENV: '"production"'
68-
}
69-
}),
70-
new webpack.optimize.UglifyJsPlugin({
71-
sourceMap: true,
72-
compress: {
73-
warnings: false
74-
}
74+
NODE_ENV: '"production"',
75+
},
7576
}),
76-
new webpack.LoaderOptionsPlugin({
77-
minimize: true
78-
})
7977
])
8078
}

0 commit comments

Comments
 (0)