Removed babel & auto-prefixer from build system

Closes #1468
This commit is contained in:
Dan Brown 2019-06-04 12:19:34 +01:00
parent fe64248e86
commit f12a7540c9
No known key found for this signature in database
GPG Key ID: 46D9F943C24A2EF9
4 changed files with 5506 additions and 6154 deletions

View File

@ -1,2 +0,0 @@
>0.25%
not op_mini all

11601
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -10,34 +10,27 @@
"permissions": "chown -R $USER:$USER bootstrap/cache storage public/uploads"
},
"devDependencies": {
"@babel/core": "^7.1.6",
"@babel/polyfill": "^7.0.0",
"@babel/preset-env": "^7.1.6",
"autoprefixer": "^9.4.7",
"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",
"css-loader": "^2.1.1",
"livereload": "^0.8.0",
"mini-css-extract-plugin": "^0.7.0",
"node-sass": "^4.12.0",
"npm-run-all": "^4.1.5",
"postcss-loader": "^3.0.0",
"sass-loader": "^7.1.0",
"style-loader": "^0.23.1",
"uglifyjs-webpack-plugin": "^2.1.1",
"webpack": "^4.26.1",
"webpack-cli": "^3.1.2"
"webpack": "^4.32.2",
"webpack-cli": "^3.3.2"
},
"dependencies": {
"axios": "^0.18.0",
"axios": "^0.19.0",
"clipboard": "^2.0.4",
"codemirror": "^5.42.0",
"codemirror": "^5.47.0",
"dropzone": "^5.5.1",
"jquery": "^3.3.1",
"jquery": "^3.4.1",
"jquery-sortable": "^0.9.13",
"markdown-it": "^8.4.2",
"markdown-it-task-lists": "^2.1.1",
"vue": "^2.5.17",
"vuedraggable": "^2.16.0"
"vue": "^2.6.10",
"vuedraggable": "^2.21.0"
},
"browser": {
"vue": "vue/dist/vue.common.js"

View File

@ -1,7 +1,6 @@
const path = require('path');
const dev = process.env.NODE_ENV !== 'production';
const UglifyJsPlugin = require('uglifyjs-webpack-plugin');
const MiniCssExtractPlugin = require("mini-css-extract-plugin");
const config = {
@ -19,20 +18,6 @@ const config = {
},
module: {
rules: [
{
test: /\.js$/,
exclude: /(node_modules)/,
use: {
loader: 'babel-loader',
options: {
presets: [[
'@babel/preset-env', {
useBuiltIns: 'usage'
}
]]
}
}
},
{
test: /\.scss$/,
use: [
@ -44,15 +29,6 @@ const config = {
loader: "css-loader", options: {
sourceMap: dev
}
}, {
loader: 'postcss-loader',
options: {
ident: 'postcss',
sourceMap: dev,
plugins: (loader) => [
require('autoprefixer')(),
]
}
}, {
loader: "sass-loader", options: {
sourceMap: dev
@ -73,8 +49,4 @@ if (dev) {
config['devtool'] = 'inline-source-map';
}
if (!dev) {
config.plugins.push(new UglifyJsPlugin());
}
module.exports = config;