corrcted npm errors with webpack and autoprefixer
This commit is contained in:
parent
696e003790
commit
78c0b13b34
|
@ -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) {
|
||||
|
|
|
@ -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": {
|
||||
|
|
|
@ -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": [
|
||||
|
|
Loading…
Reference in New Issue