-
-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'release/1.4.38' into v1
- Loading branch information
Showing
69 changed files
with
8,998 additions
and
180 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,145 @@ | ||
{ | ||
"name": "imageoptimize", | ||
"version": "1.0.0", | ||
"description": "Automatically optimize images after they've been transformed", | ||
"copyright": "nystudio107", | ||
"main": "index.js", | ||
"scripts": { | ||
"dev": "webpack --config webpack.dev.js --progress --hide-modules", | ||
"watch": "webpack --config webpack.dev.js --progress --watch --hide-modules", | ||
"build": "webpack --config webpack.prod.js" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/nystudio107/craft-imageoptimize.git" | ||
}, | ||
"author": "[email protected]", | ||
"license": "proprietary", | ||
"bugs": { | ||
"url": "https://github.com/nystudio107/craft-imageoptimize/issues" | ||
}, | ||
"homepage": "https://github.com/nystudio107/craft-imageoptimize", | ||
"paths": { | ||
"src": { | ||
"base": "./src/assetbundles/imageoptimize/src/", | ||
"js": "./src/assetbundles/imageoptimize/src/js/", | ||
"css": "./src/assetbundles/imageoptimize/src/css/" | ||
}, | ||
"dist": { | ||
"base": "./src/assetbundles/imageoptimize/dist/", | ||
"public": "/cpresources/imageoptimize/", | ||
"clean": [ | ||
"./js", | ||
"./css" | ||
] | ||
}, | ||
"copyFiles": [ | ||
{ | ||
} | ||
], | ||
"manifest": { | ||
"basePath": "", | ||
"template": { | ||
"twigCss": "./src/templates/_src/include-css-module.twig", | ||
"twigModern": "./src/templates/_src/include-modern-module.twig", | ||
"twigLegacy": "./src/templates/_src/include-legacy-module.twig" | ||
}, | ||
"filename": { | ||
"twigCss": "./src/templates/_includes/include-css-module.twig", | ||
"twigModern": "./src/templates/_includes/include-modern-module.twig", | ||
"twigLegacy": "./src/templates/_includes/include-legacy-module.twig" | ||
} | ||
}, | ||
"templates": "./src/templates/" | ||
}, | ||
"entries": { | ||
"imageoptimize": "ImageOptimize.js", | ||
"welcome": "Welcome.js" | ||
}, | ||
"babelConfig": { | ||
"legacyBrowsers": [ | ||
"> 1%", | ||
"last 2 versions", | ||
"Firefox ESR" | ||
], | ||
"modernBrowsers": [ | ||
"last 2 Chrome versions", | ||
"not Chrome < 60", | ||
"last 2 Safari versions", | ||
"not Safari < 10.1", | ||
"last 2 iOS versions", | ||
"not iOS < 10.3", | ||
"last 2 Firefox versions", | ||
"not Firefox < 54", | ||
"last 2 Edge versions", | ||
"not Edge < 15" | ||
] | ||
}, | ||
"purgeCss": { | ||
"paths": [ | ||
"./src/templates/**/*.{twig,html}" | ||
], | ||
"whitelist": [ | ||
"../css/components.pcss" | ||
], | ||
"whitelistPatterns": [], | ||
"extensions": [ | ||
"html", | ||
"js", | ||
"twig", | ||
"vue" | ||
] | ||
}, | ||
"urls": {}, | ||
"vars": { | ||
"cssName": "imageoptimize.css", | ||
"jsName": "imageoptimize.js" | ||
}, | ||
"devDependencies": { | ||
"autoprefixer": "^8.1.0", | ||
"babel-core": "^6.26.0", | ||
"babel-loader": "^7.1.4", | ||
"babel-plugin-syntax-dynamic-import": "^6.18.0", | ||
"babel-plugin-transform-runtime": "^6.23.0", | ||
"babel-polyfill": "^6.26.0", | ||
"babel-preset-env": "^1.7.0", | ||
"clean-webpack-plugin": "^0.1.19", | ||
"copy-webpack-plugin": "^4.5.1", | ||
"css-loader": "^0.28.10", | ||
"cssnano": "^3.10.0", | ||
"extract-text-webpack-plugin": "^4.0.0-beta.0", | ||
"file-loader": "^1.1.11", | ||
"git-rev-sync": "^1.10.0", | ||
"glob-all": "^3.1.0", | ||
"html-webpack-plugin": "^3.2.0", | ||
"ignore-loader": "^0.1.2", | ||
"mini-css-extract-plugin": "^0.4.0", | ||
"moment": "^2.21.0", | ||
"optimize-css-assets-webpack-plugin": "^4.0.3", | ||
"postcss": "^6.0.19", | ||
"postcss-extend": "^1.0.5", | ||
"postcss-hexrgba": "^1.0.0", | ||
"postcss-import": "^11.1.0", | ||
"postcss-loader": "^2.1.1", | ||
"postcss-nested": "^3.0.0", | ||
"postcss-nested-ancestors": "^1.0.0", | ||
"postcss-simple-vars": "^4.1.0", | ||
"purgecss-webpack-plugin": "^1.2.0", | ||
"purgecss-whitelister": "^2.1.0", | ||
"resolve-url-loader": "^2.3.0", | ||
"tailwindcss": "^0.6.4", | ||
"uglifyjs-webpack-plugin": "^1.2.7", | ||
"vue-loader": "^15.3.0", | ||
"vue-style-loader": "^4.1.2", | ||
"vue-template-compiler": "^2.5.17", | ||
"webpack": "^4.1.1", | ||
"webpack-bundle-analyzer": "^2.13.1", | ||
"webpack-cli": "^2.0.11", | ||
"webpack-manifest-plugin": "^2.0.3", | ||
"webpack-merge": "^4.1.2" | ||
}, | ||
"dependencies": { | ||
"vue": "^2.5.17", | ||
"vue-confetti": "^0.4.1" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
module.exports = { | ||
plugins: [ | ||
require('postcss-import'), | ||
require('postcss-extend'), | ||
require('postcss-simple-vars'), | ||
require('postcss-nested-ancestors'), | ||
require('postcss-nested'), | ||
require('postcss-hexrgba'), | ||
require('autoprefixer'), | ||
require('tailwindcss')('./tailwind.config.js') | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
40 changes: 40 additions & 0 deletions
40
src/assetbundles/imageoptimize/ImageOptimizeWelcomeAsset.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
<?php | ||
/** | ||
* Image Optimize plugin for Craft CMS 3.x | ||
* | ||
* Automatically optimize images after they've been transformed | ||
* | ||
* @link https://nystudio107.com | ||
* @copyright Copyright (c) 2017 nystudio107 | ||
*/ | ||
|
||
namespace nystudio107\imageoptimize\assetbundles\ImageOptimize; | ||
|
||
use craft\web\AssetBundle; | ||
use craft\web\assets\cp\CpAsset; | ||
|
||
/** | ||
* @author nystudio107 | ||
* @package ImageOptimize | ||
* @since 1.2.0 | ||
*/ | ||
class ImageOptimizeWelcomeAsset extends AssetBundle | ||
{ | ||
// Public Methods | ||
// ========================================================================= | ||
|
||
/** | ||
* @inheritdoc | ||
*/ | ||
public function init() | ||
{ | ||
$this->sourcePath = '@nystudio107/imageoptimize/assetbundles/imageoptimize/dist'; | ||
|
||
$this->depends = [ | ||
CpAsset::class, | ||
ImageOptimizeAsset::class, | ||
]; | ||
|
||
parent::init(); | ||
} | ||
} |
10 changes: 10 additions & 0 deletions
10
src/assetbundles/imageoptimize/dist/css/imageoptimize.5c2a9acc33f65ffa2d5d.css
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
1 change: 1 addition & 0 deletions
1
src/assetbundles/imageoptimize/dist/css/imageoptimize.5c2a9acc33f65ffa2d5d.css.map
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.