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

6
package-lock.json generated
View File

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

View File

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