mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-05-04 00:09:58 +00:00
parent
fe64248e86
commit
f12a7540c9
4 changed files with 5506 additions and 6154 deletions
|
@ -1,2 +0,0 @@
|
||||||
>0.25%
|
|
||||||
not op_mini all
|
|
11601
package-lock.json
generated
11601
package-lock.json
generated
File diff suppressed because it is too large
Load diff
29
package.json
29
package.json
|
@ -10,34 +10,27 @@
|
||||||
"permissions": "chown -R $USER:$USER bootstrap/cache storage public/uploads"
|
"permissions": "chown -R $USER:$USER bootstrap/cache storage public/uploads"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@babel/core": "^7.1.6",
|
"css-loader": "^2.1.1",
|
||||||
"@babel/polyfill": "^7.0.0",
|
"livereload": "^0.8.0",
|
||||||
"@babel/preset-env": "^7.1.6",
|
"mini-css-extract-plugin": "^0.7.0",
|
||||||
"autoprefixer": "^9.4.7",
|
"node-sass": "^4.12.0",
|
||||||
"babel-loader": "^8.0.4",
|
|
||||||
"css-loader": "^2.1.0",
|
|
||||||
"livereload": "^0.7.0",
|
|
||||||
"mini-css-extract-plugin": "^0.5.0",
|
|
||||||
"node-sass": "^4.10.0",
|
|
||||||
"npm-run-all": "^4.1.5",
|
"npm-run-all": "^4.1.5",
|
||||||
"postcss-loader": "^3.0.0",
|
|
||||||
"sass-loader": "^7.1.0",
|
"sass-loader": "^7.1.0",
|
||||||
"style-loader": "^0.23.1",
|
"style-loader": "^0.23.1",
|
||||||
"uglifyjs-webpack-plugin": "^2.1.1",
|
"webpack": "^4.32.2",
|
||||||
"webpack": "^4.26.1",
|
"webpack-cli": "^3.3.2"
|
||||||
"webpack-cli": "^3.1.2"
|
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"axios": "^0.18.0",
|
"axios": "^0.19.0",
|
||||||
"clipboard": "^2.0.4",
|
"clipboard": "^2.0.4",
|
||||||
"codemirror": "^5.42.0",
|
"codemirror": "^5.47.0",
|
||||||
"dropzone": "^5.5.1",
|
"dropzone": "^5.5.1",
|
||||||
"jquery": "^3.3.1",
|
"jquery": "^3.4.1",
|
||||||
"jquery-sortable": "^0.9.13",
|
"jquery-sortable": "^0.9.13",
|
||||||
"markdown-it": "^8.4.2",
|
"markdown-it": "^8.4.2",
|
||||||
"markdown-it-task-lists": "^2.1.1",
|
"markdown-it-task-lists": "^2.1.1",
|
||||||
"vue": "^2.5.17",
|
"vue": "^2.6.10",
|
||||||
"vuedraggable": "^2.16.0"
|
"vuedraggable": "^2.21.0"
|
||||||
},
|
},
|
||||||
"browser": {
|
"browser": {
|
||||||
"vue": "vue/dist/vue.common.js"
|
"vue": "vue/dist/vue.common.js"
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
const path = require('path');
|
const path = require('path');
|
||||||
const dev = process.env.NODE_ENV !== 'production';
|
const dev = process.env.NODE_ENV !== 'production';
|
||||||
|
|
||||||
const UglifyJsPlugin = require('uglifyjs-webpack-plugin');
|
|
||||||
const MiniCssExtractPlugin = require("mini-css-extract-plugin");
|
const MiniCssExtractPlugin = require("mini-css-extract-plugin");
|
||||||
|
|
||||||
const config = {
|
const config = {
|
||||||
|
@ -19,20 +18,6 @@ const config = {
|
||||||
},
|
},
|
||||||
module: {
|
module: {
|
||||||
rules: [
|
rules: [
|
||||||
{
|
|
||||||
test: /\.js$/,
|
|
||||||
exclude: /(node_modules)/,
|
|
||||||
use: {
|
|
||||||
loader: 'babel-loader',
|
|
||||||
options: {
|
|
||||||
presets: [[
|
|
||||||
'@babel/preset-env', {
|
|
||||||
useBuiltIns: 'usage'
|
|
||||||
}
|
|
||||||
]]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
test: /\.scss$/,
|
test: /\.scss$/,
|
||||||
use: [
|
use: [
|
||||||
|
@ -44,15 +29,6 @@ const config = {
|
||||||
loader: "css-loader", options: {
|
loader: "css-loader", options: {
|
||||||
sourceMap: dev
|
sourceMap: dev
|
||||||
}
|
}
|
||||||
}, {
|
|
||||||
loader: 'postcss-loader',
|
|
||||||
options: {
|
|
||||||
ident: 'postcss',
|
|
||||||
sourceMap: dev,
|
|
||||||
plugins: (loader) => [
|
|
||||||
require('autoprefixer')(),
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}, {
|
}, {
|
||||||
loader: "sass-loader", options: {
|
loader: "sass-loader", options: {
|
||||||
sourceMap: dev
|
sourceMap: dev
|
||||||
|
@ -73,8 +49,4 @@ if (dev) {
|
||||||
config['devtool'] = 'inline-source-map';
|
config['devtool'] = 'inline-source-map';
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!dev) {
|
|
||||||
config.plugins.push(new UglifyJsPlugin());
|
|
||||||
}
|
|
||||||
|
|
||||||
module.exports = config;
|
module.exports = config;
|
Loading…
Add table
Add a link
Reference in a new issue