From 78c0b13b340fe087edf08140bdbc6f2adb74fe90 Mon Sep 17 00:00:00 2001 From: "Jorge - hangar.org" Date: Wed, 27 Oct 2021 13:20:27 +0200 Subject: [PATCH] corrcted npm errors with webpack and autoprefixer --- gulpfile.babel.js | 11 +++++++++-- package-lock.json | 6 +++--- package.json | 8 ++++---- 3 files changed, 16 insertions(+), 9 deletions(-) diff --git a/gulpfile.babel.js b/gulpfile.babel.js index 9ec9002e..94019598 100644 --- a/gulpfile.babel.js +++ b/gulpfile.babel.js @@ -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) { diff --git a/package-lock.json b/package-lock.json index 208979ae..d71a6a4c 100644 --- a/package-lock.json +++ b/package-lock.json @@ -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": { diff --git a/package.json b/package.json index 87469358..70359011 100644 --- a/package.json +++ b/package.json @@ -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": [