corrcted npm errors with webpack and autoprefixer

This commit is contained in:
jorge 2021-10-27 13:20:27 +02:00
parent 696e003790
commit 78c0b13b34
3 changed files with 16 additions and 9 deletions

View File

@ -84,7 +84,9 @@ function sass() {
})
.on('error', $.sass.logError))
.pipe($.autoprefixer({
browsers: COMPATIBILITY
// browsers: COMPATIBILITY
// browserslist: COMPATIBILITY
overrideBrowserslist: COMPATIBILITY
}))
.pipe($.if(PRODUCTION, $.cleanCss({ compatibility: 'ie9' })))
@ -98,20 +100,25 @@ function sass() {
// Combine JavaScript into one file
// In production, the file is minified
// other options in ./webpack.config.js
const webpack = {
config: {
module: {
rules: [
{
test: /.js$/,
loader: 'babel-loader',
exclude: /node_modules(?![\\\/]foundation-sites)/,
use: {
loader: 'babel-loader',
},
},
],
},
externals: {
jquery: 'jQuery',
},
// https://webpack.js.org/configuration/mode/
mode: 'production',
},
changeHandler(err, stats) {

6
package-lock.json generated
View File

@ -2630,9 +2630,9 @@
}
},
"caniuse-lite": {
"version": "1.0.30001202",
"resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001202.tgz",
"integrity": "sha512-ZcijQNqrcF8JNLjzvEiXqX4JUYxoZa7Pvcsd9UD8Kz4TvhTonOSNRsK+qtvpVL4l6+T1Rh4LFtLfnNWg6BGWCQ==",
"version": "1.0.30001271",
"resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001271.tgz",
"integrity": "sha512-BBruZFWmt3HFdVPS8kceTBIguKxu4f99n5JNp06OlPD/luoAMIaIK5ieV5YjnBLH3Nysai9sxj9rpJj4ZisXOA==",
"dev": true
},
"caseless": {

View File

@ -1,8 +1,8 @@
{
"name": "biofriction",
"title": "Biofriction",
"version": "1.0.0",
"description": "Biofriction is a WordPress theme created for Hangar.orgx based on FoundationPress and Foundation 6 by Zurb",
"version": "2.0.0",
"description": "Biofriction is a WordPress theme created for Hangar.org",
"homepage": "https://biofriction.org",
"license": "GNU-GPL v3",
"main": "gulpfile.babel.js",
@ -67,10 +67,10 @@
},
"repository": {
"type": "git",
"url": "https://gitlab.com/jorge-vitrubio/biofriction-theme.git"
"url": "https://git.hangar.org/hangar-tech/biofriction-wp-theme"
},
"bugs": {
"url": "https://gitlab.com/jorge-vitrubio/biofriction-theme/issues"
"url": "https://git.hangar.org/hangar-tech/biofriction-wp-theme/issues"
},
"babel": {
"presets": [