v-page 2.0.8 → 2.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +49 -64
- package/dist/v-page.js +1 -1
- package/dist/v-page.js.map +1 -1
- package/package.json +75 -47
- package/types/index.d.ts +69 -0
- package/.babelrc +0 -6
- package/.editorconfig +0 -9
- package/src/Page.js +0 -232
- package/src/index.js +0 -21
- package/src/language.js +0 -28
- package/src/page.scss +0 -112
- package/webpack.config.js +0 -113
package/webpack.config.js
DELETED
|
@@ -1,113 +0,0 @@
|
|
|
1
|
-
var path = require('path')
|
|
2
|
-
var webpack = require('webpack')
|
|
3
|
-
|
|
4
|
-
module.exports = {
|
|
5
|
-
//entry: './src/main.js',
|
|
6
|
-
entry: './src/index.js',
|
|
7
|
-
output: {
|
|
8
|
-
path: path.resolve(__dirname, './dist'),
|
|
9
|
-
publicPath: '/dist/',
|
|
10
|
-
//filename: 'build.js'
|
|
11
|
-
filename: 'v-page.js',
|
|
12
|
-
library: 'vPage',
|
|
13
|
-
libraryTarget: 'umd',
|
|
14
|
-
umdNamedDefine: true
|
|
15
|
-
},
|
|
16
|
-
module: {
|
|
17
|
-
rules: [
|
|
18
|
-
{
|
|
19
|
-
test: /\.css$/,
|
|
20
|
-
use: [
|
|
21
|
-
'vue-style-loader',
|
|
22
|
-
'css-loader'
|
|
23
|
-
],
|
|
24
|
-
},
|
|
25
|
-
{
|
|
26
|
-
test: /\.scss$/,
|
|
27
|
-
use: [
|
|
28
|
-
'vue-style-loader',
|
|
29
|
-
'css-loader',
|
|
30
|
-
'sass-loader'
|
|
31
|
-
],
|
|
32
|
-
},
|
|
33
|
-
{
|
|
34
|
-
test: /\.sass$/,
|
|
35
|
-
use: [
|
|
36
|
-
'vue-style-loader',
|
|
37
|
-
'css-loader',
|
|
38
|
-
'sass-loader?indentedSyntax'
|
|
39
|
-
],
|
|
40
|
-
},
|
|
41
|
-
{
|
|
42
|
-
test: /\.vue$/,
|
|
43
|
-
loader: 'vue-loader',
|
|
44
|
-
options: {
|
|
45
|
-
loaders: {
|
|
46
|
-
// Since sass-loader (weirdly) has SCSS as its default parse mode, we map
|
|
47
|
-
// the "scss" and "sass" values for the lang attribute to the right configs here.
|
|
48
|
-
// other preprocessors should work out of the box, no loader config like this necessary.
|
|
49
|
-
'scss': [
|
|
50
|
-
'vue-style-loader',
|
|
51
|
-
'css-loader',
|
|
52
|
-
'sass-loader'
|
|
53
|
-
],
|
|
54
|
-
'sass': [
|
|
55
|
-
'vue-style-loader',
|
|
56
|
-
'css-loader',
|
|
57
|
-
'sass-loader?indentedSyntax'
|
|
58
|
-
]
|
|
59
|
-
}
|
|
60
|
-
// other vue-loader options go here
|
|
61
|
-
}
|
|
62
|
-
},
|
|
63
|
-
{
|
|
64
|
-
test: /\.js$/,
|
|
65
|
-
loader: 'babel-loader',
|
|
66
|
-
exclude: /node_modules/
|
|
67
|
-
},
|
|
68
|
-
{
|
|
69
|
-
test: /\.(png|jpg|gif|svg)$/,
|
|
70
|
-
loader: 'file-loader',
|
|
71
|
-
options: {
|
|
72
|
-
name: '[name].[ext]?[hash]'
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
]
|
|
76
|
-
},
|
|
77
|
-
resolve: {
|
|
78
|
-
alias: {
|
|
79
|
-
'vue$': 'vue/dist/vue.esm.js'
|
|
80
|
-
},
|
|
81
|
-
extensions: ['*', '.js', '.vue', '.json']
|
|
82
|
-
},
|
|
83
|
-
devServer: {
|
|
84
|
-
historyApiFallback: true,
|
|
85
|
-
noInfo: true,
|
|
86
|
-
overlay: true
|
|
87
|
-
},
|
|
88
|
-
performance: {
|
|
89
|
-
hints: false
|
|
90
|
-
},
|
|
91
|
-
devtool: '#eval-source-map'
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
if (process.env.NODE_ENV === 'production') {
|
|
95
|
-
module.exports.devtool = '#source-map'
|
|
96
|
-
// http://vue-loader.vuejs.org/en/workflow/production.html
|
|
97
|
-
module.exports.plugins = (module.exports.plugins || []).concat([
|
|
98
|
-
new webpack.DefinePlugin({
|
|
99
|
-
'process.env': {
|
|
100
|
-
NODE_ENV: '"production"'
|
|
101
|
-
}
|
|
102
|
-
}),
|
|
103
|
-
new webpack.optimize.UglifyJsPlugin({
|
|
104
|
-
sourceMap: true,
|
|
105
|
-
compress: {
|
|
106
|
-
warnings: false
|
|
107
|
-
}
|
|
108
|
-
}),
|
|
109
|
-
new webpack.LoaderOptionsPlugin({
|
|
110
|
-
minimize: true
|
|
111
|
-
})
|
|
112
|
-
])
|
|
113
|
-
}
|