cache sprites and fix images caching (#9422)
@@ -11,7 +11,7 @@ import {each} from 'lodash';
|
|||||||
// https://github.com/Ensighten/grunt-spritesmith/issues/67#issuecomment-34786248
|
// https://github.com/Ensighten/grunt-spritesmith/issues/67#issuecomment-34786248
|
||||||
const MAX_SPRITESHEET_SIZE = 1024 * 1024 * 3;
|
const MAX_SPRITESHEET_SIZE = 1024 * 1024 * 3;
|
||||||
|
|
||||||
const IMG_DIST_PATH = 'website/static/sprites/';
|
const IMG_DIST_PATH = 'website/client/assets/images/sprites/';
|
||||||
const CSS_DIST_PATH = 'website/client/assets/css/sprites/';
|
const CSS_DIST_PATH = 'website/client/assets/css/sprites/';
|
||||||
|
|
||||||
function checkForSpecialTreatment (name) {
|
function checkForSpecialTreatment (name) {
|
||||||
|
|||||||
@@ -83,7 +83,7 @@ const baseConfig = {
|
|||||||
loader: 'url-loader',
|
loader: 'url-loader',
|
||||||
query: {
|
query: {
|
||||||
limit: 10000,
|
limit: 10000,
|
||||||
name: utils.assetsPath('img/[name].[hash:7].[ext]'),
|
name: utils.assetsPath('images/[name].[hash:7].[ext]'),
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -359,4 +359,26 @@ export default {
|
|||||||
<style src="intro.js/minified/introjs.min.css"></style>
|
<style src="intro.js/minified/introjs.min.css"></style>
|
||||||
<style src="bootstrap/scss/bootstrap.scss" lang="scss"></style>
|
<style src="bootstrap/scss/bootstrap.scss" lang="scss"></style>
|
||||||
<style src="assets/scss/index.scss" lang="scss"></style>
|
<style src="assets/scss/index.scss" lang="scss"></style>
|
||||||
<style src="assets/css/index.css"></style>
|
<style src="assets/css/sprites/spritesmith-largeSprites-0.css"></style>
|
||||||
|
<style src="assets/css/sprites/spritesmith-main-0.css"></style>
|
||||||
|
<style src="assets/css/sprites/spritesmith-main-1.css"></style>
|
||||||
|
<style src="assets/css/sprites/spritesmith-main-2.css"></style>
|
||||||
|
<style src="assets/css/sprites/spritesmith-main-3.css"></style>
|
||||||
|
<style src="assets/css/sprites/spritesmith-main-4.css"></style>
|
||||||
|
<style src="assets/css/sprites/spritesmith-main-5.css"></style>
|
||||||
|
<style src="assets/css/sprites/spritesmith-main-6.css"></style>
|
||||||
|
<style src="assets/css/sprites/spritesmith-main-7.css"></style>
|
||||||
|
<style src="assets/css/sprites/spritesmith-main-8.css"></style>
|
||||||
|
<style src="assets/css/sprites/spritesmith-main-9.css"></style>
|
||||||
|
<style src="assets/css/sprites/spritesmith-main-10.css"></style>
|
||||||
|
<style src="assets/css/sprites/spritesmith-main-11.css"></style>
|
||||||
|
<style src="assets/css/sprites/spritesmith-main-12.css"></style>
|
||||||
|
<style src="assets/css/sprites/spritesmith-main-13.css"></style>
|
||||||
|
<style src="assets/css/sprites/spritesmith-main-14.css"></style>
|
||||||
|
<style src="assets/css/sprites/spritesmith-main-15.css"></style>
|
||||||
|
<style src="assets/css/sprites/spritesmith-main-16.css"></style>
|
||||||
|
<style src="assets/css/sprites/spritesmith-main-17.css"></style>
|
||||||
|
<style src="assets/css/sprites/spritesmith-main-18.css"></style>
|
||||||
|
<style src="assets/css/sprites/spritesmith-main-19.css"></style>
|
||||||
|
<style src="assets/css/sprites/spritesmith-main-20.css"></style>
|
||||||
|
<style src="assets/css/sprites.css"></style>
|
||||||
@@ -1,2 +0,0 @@
|
|||||||
@import './sprites/*.css';
|
|
||||||
@import './sprites.css';
|
|
||||||
@@ -1,23 +1,23 @@
|
|||||||
.promo_armoire_backgrounds_201711 {
|
.promo_armoire_backgrounds_201711 {
|
||||||
background-image: url(/static/sprites/spritesmith-largeSprites-0.png);
|
background-image: url('~assets/images/sprites/spritesmith-largeSprites-0.png');
|
||||||
background-position: 0px -221px;
|
background-position: 0px -221px;
|
||||||
width: 141px;
|
width: 141px;
|
||||||
height: 441px;
|
height: 441px;
|
||||||
}
|
}
|
||||||
.promo_batch_tasks {
|
.promo_batch_tasks {
|
||||||
background-image: url(/static/sprites/spritesmith-largeSprites-0.png);
|
background-image: url('~assets/images/sprites/spritesmith-largeSprites-0.png');
|
||||||
background-position: 0px 0px;
|
background-position: 0px 0px;
|
||||||
width: 362px;
|
width: 362px;
|
||||||
height: 220px;
|
height: 220px;
|
||||||
}
|
}
|
||||||
.promo_push_top_bottom {
|
.promo_push_top_bottom {
|
||||||
background-image: url(/static/sprites/spritesmith-largeSprites-0.png);
|
background-image: url('~assets/images/sprites/spritesmith-largeSprites-0.png');
|
||||||
background-position: -363px 0px;
|
background-position: -363px 0px;
|
||||||
width: 360px;
|
width: 360px;
|
||||||
height: 219px;
|
height: 219px;
|
||||||
}
|
}
|
||||||
.promo_take_this {
|
.promo_take_this {
|
||||||
background-image: url(/static/sprites/spritesmith-largeSprites-0.png);
|
background-image: url('~assets/images/sprites/spritesmith-largeSprites-0.png');
|
||||||
background-position: -142px -221px;
|
background-position: -142px -221px;
|
||||||
width: 114px;
|
width: 114px;
|
||||||
height: 87px;
|
height: 87px;
|
||||||
|
|||||||
@@ -1,341 +1,341 @@
|
|||||||
.Pet-Unicorn-Zombie {
|
.Pet-Unicorn-Zombie {
|
||||||
background-image: url(/static/sprites/spritesmith-main-20.png);
|
background-image: url('~assets/images/sprites/spritesmith-main-20.png');
|
||||||
background-position: -82px 0px;
|
background-position: -82px 0px;
|
||||||
width: 81px;
|
width: 81px;
|
||||||
height: 99px;
|
height: 99px;
|
||||||
}
|
}
|
||||||
.Pet-Whale-Base {
|
.Pet-Whale-Base {
|
||||||
background-image: url(/static/sprites/spritesmith-main-20.png);
|
background-image: url('~assets/images/sprites/spritesmith-main-20.png');
|
||||||
background-position: 0px -400px;
|
background-position: 0px -400px;
|
||||||
width: 81px;
|
width: 81px;
|
||||||
height: 99px;
|
height: 99px;
|
||||||
}
|
}
|
||||||
.Pet-Whale-CottonCandyBlue {
|
.Pet-Whale-CottonCandyBlue {
|
||||||
background-image: url(/static/sprites/spritesmith-main-20.png);
|
background-image: url('~assets/images/sprites/spritesmith-main-20.png');
|
||||||
background-position: -164px 0px;
|
background-position: -164px 0px;
|
||||||
width: 81px;
|
width: 81px;
|
||||||
height: 99px;
|
height: 99px;
|
||||||
}
|
}
|
||||||
.Pet-Whale-CottonCandyPink {
|
.Pet-Whale-CottonCandyPink {
|
||||||
background-image: url(/static/sprites/spritesmith-main-20.png);
|
background-image: url('~assets/images/sprites/spritesmith-main-20.png');
|
||||||
background-position: 0px -100px;
|
background-position: 0px -100px;
|
||||||
width: 81px;
|
width: 81px;
|
||||||
height: 99px;
|
height: 99px;
|
||||||
}
|
}
|
||||||
.Pet-Whale-Desert {
|
.Pet-Whale-Desert {
|
||||||
background-image: url(/static/sprites/spritesmith-main-20.png);
|
background-image: url('~assets/images/sprites/spritesmith-main-20.png');
|
||||||
background-position: -82px -100px;
|
background-position: -82px -100px;
|
||||||
width: 81px;
|
width: 81px;
|
||||||
height: 99px;
|
height: 99px;
|
||||||
}
|
}
|
||||||
.Pet-Whale-Golden {
|
.Pet-Whale-Golden {
|
||||||
background-image: url(/static/sprites/spritesmith-main-20.png);
|
background-image: url('~assets/images/sprites/spritesmith-main-20.png');
|
||||||
background-position: -164px -100px;
|
background-position: -164px -100px;
|
||||||
width: 81px;
|
width: 81px;
|
||||||
height: 99px;
|
height: 99px;
|
||||||
}
|
}
|
||||||
.Pet-Whale-Red {
|
.Pet-Whale-Red {
|
||||||
background-image: url(/static/sprites/spritesmith-main-20.png);
|
background-image: url('~assets/images/sprites/spritesmith-main-20.png');
|
||||||
background-position: -246px 0px;
|
background-position: -246px 0px;
|
||||||
width: 81px;
|
width: 81px;
|
||||||
height: 99px;
|
height: 99px;
|
||||||
}
|
}
|
||||||
.Pet-Whale-Shade {
|
.Pet-Whale-Shade {
|
||||||
background-image: url(/static/sprites/spritesmith-main-20.png);
|
background-image: url('~assets/images/sprites/spritesmith-main-20.png');
|
||||||
background-position: -246px -100px;
|
background-position: -246px -100px;
|
||||||
width: 81px;
|
width: 81px;
|
||||||
height: 99px;
|
height: 99px;
|
||||||
}
|
}
|
||||||
.Pet-Whale-Skeleton {
|
.Pet-Whale-Skeleton {
|
||||||
background-image: url(/static/sprites/spritesmith-main-20.png);
|
background-image: url('~assets/images/sprites/spritesmith-main-20.png');
|
||||||
background-position: 0px -200px;
|
background-position: 0px -200px;
|
||||||
width: 81px;
|
width: 81px;
|
||||||
height: 99px;
|
height: 99px;
|
||||||
}
|
}
|
||||||
.Pet-Whale-White {
|
.Pet-Whale-White {
|
||||||
background-image: url(/static/sprites/spritesmith-main-20.png);
|
background-image: url('~assets/images/sprites/spritesmith-main-20.png');
|
||||||
background-position: -82px -200px;
|
background-position: -82px -200px;
|
||||||
width: 81px;
|
width: 81px;
|
||||||
height: 99px;
|
height: 99px;
|
||||||
}
|
}
|
||||||
.Pet-Whale-Zombie {
|
.Pet-Whale-Zombie {
|
||||||
background-image: url(/static/sprites/spritesmith-main-20.png);
|
background-image: url('~assets/images/sprites/spritesmith-main-20.png');
|
||||||
background-position: -164px -200px;
|
background-position: -164px -200px;
|
||||||
width: 81px;
|
width: 81px;
|
||||||
height: 99px;
|
height: 99px;
|
||||||
}
|
}
|
||||||
.Pet-Wolf-Aquatic {
|
.Pet-Wolf-Aquatic {
|
||||||
background-image: url(/static/sprites/spritesmith-main-20.png);
|
background-image: url('~assets/images/sprites/spritesmith-main-20.png');
|
||||||
background-position: -246px -200px;
|
background-position: -246px -200px;
|
||||||
width: 81px;
|
width: 81px;
|
||||||
height: 99px;
|
height: 99px;
|
||||||
}
|
}
|
||||||
.Pet-Wolf-Base {
|
.Pet-Wolf-Base {
|
||||||
background-image: url(/static/sprites/spritesmith-main-20.png);
|
background-image: url('~assets/images/sprites/spritesmith-main-20.png');
|
||||||
background-position: -328px 0px;
|
background-position: -328px 0px;
|
||||||
width: 81px;
|
width: 81px;
|
||||||
height: 99px;
|
height: 99px;
|
||||||
}
|
}
|
||||||
.Pet-Wolf-CottonCandyBlue {
|
.Pet-Wolf-CottonCandyBlue {
|
||||||
background-image: url(/static/sprites/spritesmith-main-20.png);
|
background-image: url('~assets/images/sprites/spritesmith-main-20.png');
|
||||||
background-position: -328px -100px;
|
background-position: -328px -100px;
|
||||||
width: 81px;
|
width: 81px;
|
||||||
height: 99px;
|
height: 99px;
|
||||||
}
|
}
|
||||||
.Pet-Wolf-CottonCandyPink {
|
.Pet-Wolf-CottonCandyPink {
|
||||||
background-image: url(/static/sprites/spritesmith-main-20.png);
|
background-image: url('~assets/images/sprites/spritesmith-main-20.png');
|
||||||
background-position: -328px -200px;
|
background-position: -328px -200px;
|
||||||
width: 81px;
|
width: 81px;
|
||||||
height: 99px;
|
height: 99px;
|
||||||
}
|
}
|
||||||
.Pet-Wolf-Cupid {
|
.Pet-Wolf-Cupid {
|
||||||
background-image: url(/static/sprites/spritesmith-main-20.png);
|
background-image: url('~assets/images/sprites/spritesmith-main-20.png');
|
||||||
background-position: 0px -300px;
|
background-position: 0px -300px;
|
||||||
width: 81px;
|
width: 81px;
|
||||||
height: 99px;
|
height: 99px;
|
||||||
}
|
}
|
||||||
.Pet-Wolf-Desert {
|
.Pet-Wolf-Desert {
|
||||||
background-image: url(/static/sprites/spritesmith-main-20.png);
|
background-image: url('~assets/images/sprites/spritesmith-main-20.png');
|
||||||
background-position: -82px -300px;
|
background-position: -82px -300px;
|
||||||
width: 81px;
|
width: 81px;
|
||||||
height: 99px;
|
height: 99px;
|
||||||
}
|
}
|
||||||
.Pet-Wolf-Ember {
|
.Pet-Wolf-Ember {
|
||||||
background-image: url(/static/sprites/spritesmith-main-20.png);
|
background-image: url('~assets/images/sprites/spritesmith-main-20.png');
|
||||||
background-position: -164px -300px;
|
background-position: -164px -300px;
|
||||||
width: 81px;
|
width: 81px;
|
||||||
height: 99px;
|
height: 99px;
|
||||||
}
|
}
|
||||||
.Pet-Wolf-Fairy {
|
.Pet-Wolf-Fairy {
|
||||||
background-image: url(/static/sprites/spritesmith-main-20.png);
|
background-image: url('~assets/images/sprites/spritesmith-main-20.png');
|
||||||
background-position: -246px -300px;
|
background-position: -246px -300px;
|
||||||
width: 81px;
|
width: 81px;
|
||||||
height: 99px;
|
height: 99px;
|
||||||
}
|
}
|
||||||
.Pet-Wolf-Floral {
|
.Pet-Wolf-Floral {
|
||||||
background-image: url(/static/sprites/spritesmith-main-20.png);
|
background-image: url('~assets/images/sprites/spritesmith-main-20.png');
|
||||||
background-position: -328px -300px;
|
background-position: -328px -300px;
|
||||||
width: 81px;
|
width: 81px;
|
||||||
height: 99px;
|
height: 99px;
|
||||||
}
|
}
|
||||||
.Pet-Wolf-Ghost {
|
.Pet-Wolf-Ghost {
|
||||||
background-image: url(/static/sprites/spritesmith-main-20.png);
|
background-image: url('~assets/images/sprites/spritesmith-main-20.png');
|
||||||
background-position: -410px 0px;
|
background-position: -410px 0px;
|
||||||
width: 81px;
|
width: 81px;
|
||||||
height: 99px;
|
height: 99px;
|
||||||
}
|
}
|
||||||
.Pet-Wolf-Golden {
|
.Pet-Wolf-Golden {
|
||||||
background-image: url(/static/sprites/spritesmith-main-20.png);
|
background-image: url('~assets/images/sprites/spritesmith-main-20.png');
|
||||||
background-position: -410px -100px;
|
background-position: -410px -100px;
|
||||||
width: 81px;
|
width: 81px;
|
||||||
height: 99px;
|
height: 99px;
|
||||||
}
|
}
|
||||||
.Pet-Wolf-Holly {
|
.Pet-Wolf-Holly {
|
||||||
background-image: url(/static/sprites/spritesmith-main-20.png);
|
background-image: url('~assets/images/sprites/spritesmith-main-20.png');
|
||||||
background-position: -410px -200px;
|
background-position: -410px -200px;
|
||||||
width: 81px;
|
width: 81px;
|
||||||
height: 99px;
|
height: 99px;
|
||||||
}
|
}
|
||||||
.Pet-Wolf-Peppermint {
|
.Pet-Wolf-Peppermint {
|
||||||
background-image: url(/static/sprites/spritesmith-main-20.png);
|
background-image: url('~assets/images/sprites/spritesmith-main-20.png');
|
||||||
background-position: -410px -300px;
|
background-position: -410px -300px;
|
||||||
width: 81px;
|
width: 81px;
|
||||||
height: 99px;
|
height: 99px;
|
||||||
}
|
}
|
||||||
.Pet-Wolf-Red {
|
.Pet-Wolf-Red {
|
||||||
background-image: url(/static/sprites/spritesmith-main-20.png);
|
background-image: url('~assets/images/sprites/spritesmith-main-20.png');
|
||||||
background-position: -492px 0px;
|
background-position: -492px 0px;
|
||||||
width: 81px;
|
width: 81px;
|
||||||
height: 99px;
|
height: 99px;
|
||||||
}
|
}
|
||||||
.Pet-Wolf-RoyalPurple {
|
.Pet-Wolf-RoyalPurple {
|
||||||
background-image: url(/static/sprites/spritesmith-main-20.png);
|
background-image: url('~assets/images/sprites/spritesmith-main-20.png');
|
||||||
background-position: -492px -100px;
|
background-position: -492px -100px;
|
||||||
width: 81px;
|
width: 81px;
|
||||||
height: 99px;
|
height: 99px;
|
||||||
}
|
}
|
||||||
.Pet-Wolf-Shade {
|
.Pet-Wolf-Shade {
|
||||||
background-image: url(/static/sprites/spritesmith-main-20.png);
|
background-image: url('~assets/images/sprites/spritesmith-main-20.png');
|
||||||
background-position: -492px -200px;
|
background-position: -492px -200px;
|
||||||
width: 81px;
|
width: 81px;
|
||||||
height: 99px;
|
height: 99px;
|
||||||
}
|
}
|
||||||
.Pet-Wolf-Shimmer {
|
.Pet-Wolf-Shimmer {
|
||||||
background-image: url(/static/sprites/spritesmith-main-20.png);
|
background-image: url('~assets/images/sprites/spritesmith-main-20.png');
|
||||||
background-position: -492px -300px;
|
background-position: -492px -300px;
|
||||||
width: 81px;
|
width: 81px;
|
||||||
height: 99px;
|
height: 99px;
|
||||||
}
|
}
|
||||||
.Pet-Wolf-Skeleton {
|
.Pet-Wolf-Skeleton {
|
||||||
background-image: url(/static/sprites/spritesmith-main-20.png);
|
background-image: url('~assets/images/sprites/spritesmith-main-20.png');
|
||||||
background-position: 0px 0px;
|
background-position: 0px 0px;
|
||||||
width: 81px;
|
width: 81px;
|
||||||
height: 99px;
|
height: 99px;
|
||||||
}
|
}
|
||||||
.Pet-Wolf-Spooky {
|
.Pet-Wolf-Spooky {
|
||||||
background-image: url(/static/sprites/spritesmith-main-20.png);
|
background-image: url('~assets/images/sprites/spritesmith-main-20.png');
|
||||||
background-position: -82px -400px;
|
background-position: -82px -400px;
|
||||||
width: 81px;
|
width: 81px;
|
||||||
height: 99px;
|
height: 99px;
|
||||||
}
|
}
|
||||||
.Pet-Wolf-Thunderstorm {
|
.Pet-Wolf-Thunderstorm {
|
||||||
background-image: url(/static/sprites/spritesmith-main-20.png);
|
background-image: url('~assets/images/sprites/spritesmith-main-20.png');
|
||||||
background-position: -164px -400px;
|
background-position: -164px -400px;
|
||||||
width: 81px;
|
width: 81px;
|
||||||
height: 99px;
|
height: 99px;
|
||||||
}
|
}
|
||||||
.Pet-Wolf-Veteran {
|
.Pet-Wolf-Veteran {
|
||||||
background-image: url(/static/sprites/spritesmith-main-20.png);
|
background-image: url('~assets/images/sprites/spritesmith-main-20.png');
|
||||||
background-position: -246px -400px;
|
background-position: -246px -400px;
|
||||||
width: 81px;
|
width: 81px;
|
||||||
height: 99px;
|
height: 99px;
|
||||||
}
|
}
|
||||||
.Pet-Wolf-White {
|
.Pet-Wolf-White {
|
||||||
background-image: url(/static/sprites/spritesmith-main-20.png);
|
background-image: url('~assets/images/sprites/spritesmith-main-20.png');
|
||||||
background-position: -328px -400px;
|
background-position: -328px -400px;
|
||||||
width: 81px;
|
width: 81px;
|
||||||
height: 99px;
|
height: 99px;
|
||||||
}
|
}
|
||||||
.Pet-Wolf-Zombie {
|
.Pet-Wolf-Zombie {
|
||||||
background-image: url(/static/sprites/spritesmith-main-20.png);
|
background-image: url('~assets/images/sprites/spritesmith-main-20.png');
|
||||||
background-position: -410px -400px;
|
background-position: -410px -400px;
|
||||||
width: 81px;
|
width: 81px;
|
||||||
height: 99px;
|
height: 99px;
|
||||||
}
|
}
|
||||||
.Pet_HatchingPotion_Aquatic {
|
.Pet_HatchingPotion_Aquatic {
|
||||||
background-image: url(/static/sprites/spritesmith-main-20.png);
|
background-image: url('~assets/images/sprites/spritesmith-main-20.png');
|
||||||
background-position: 0px -500px;
|
background-position: 0px -500px;
|
||||||
width: 68px;
|
width: 68px;
|
||||||
height: 68px;
|
height: 68px;
|
||||||
}
|
}
|
||||||
.Pet_HatchingPotion_Base {
|
.Pet_HatchingPotion_Base {
|
||||||
background-image: url(/static/sprites/spritesmith-main-20.png);
|
background-image: url('~assets/images/sprites/spritesmith-main-20.png');
|
||||||
background-position: -574px -138px;
|
background-position: -574px -138px;
|
||||||
width: 68px;
|
width: 68px;
|
||||||
height: 68px;
|
height: 68px;
|
||||||
}
|
}
|
||||||
.Pet_HatchingPotion_CottonCandyBlue {
|
.Pet_HatchingPotion_CottonCandyBlue {
|
||||||
background-image: url(/static/sprites/spritesmith-main-20.png);
|
background-image: url('~assets/images/sprites/spritesmith-main-20.png');
|
||||||
background-position: -69px -500px;
|
background-position: -69px -500px;
|
||||||
width: 68px;
|
width: 68px;
|
||||||
height: 68px;
|
height: 68px;
|
||||||
}
|
}
|
||||||
.Pet_HatchingPotion_CottonCandyPink {
|
.Pet_HatchingPotion_CottonCandyPink {
|
||||||
background-image: url(/static/sprites/spritesmith-main-20.png);
|
background-image: url('~assets/images/sprites/spritesmith-main-20.png');
|
||||||
background-position: -138px -500px;
|
background-position: -138px -500px;
|
||||||
width: 68px;
|
width: 68px;
|
||||||
height: 68px;
|
height: 68px;
|
||||||
}
|
}
|
||||||
.Pet_HatchingPotion_Cupid {
|
.Pet_HatchingPotion_Cupid {
|
||||||
background-image: url(/static/sprites/spritesmith-main-20.png);
|
background-image: url('~assets/images/sprites/spritesmith-main-20.png');
|
||||||
background-position: -207px -500px;
|
background-position: -207px -500px;
|
||||||
width: 68px;
|
width: 68px;
|
||||||
height: 68px;
|
height: 68px;
|
||||||
}
|
}
|
||||||
.Pet_HatchingPotion_Desert {
|
.Pet_HatchingPotion_Desert {
|
||||||
background-image: url(/static/sprites/spritesmith-main-20.png);
|
background-image: url('~assets/images/sprites/spritesmith-main-20.png');
|
||||||
background-position: -276px -500px;
|
background-position: -276px -500px;
|
||||||
width: 68px;
|
width: 68px;
|
||||||
height: 68px;
|
height: 68px;
|
||||||
}
|
}
|
||||||
.Pet_HatchingPotion_Ember {
|
.Pet_HatchingPotion_Ember {
|
||||||
background-image: url(/static/sprites/spritesmith-main-20.png);
|
background-image: url('~assets/images/sprites/spritesmith-main-20.png');
|
||||||
background-position: -345px -500px;
|
background-position: -345px -500px;
|
||||||
width: 68px;
|
width: 68px;
|
||||||
height: 68px;
|
height: 68px;
|
||||||
}
|
}
|
||||||
.Pet_HatchingPotion_Fairy {
|
.Pet_HatchingPotion_Fairy {
|
||||||
background-image: url(/static/sprites/spritesmith-main-20.png);
|
background-image: url('~assets/images/sprites/spritesmith-main-20.png');
|
||||||
background-position: -414px -500px;
|
background-position: -414px -500px;
|
||||||
width: 68px;
|
width: 68px;
|
||||||
height: 68px;
|
height: 68px;
|
||||||
}
|
}
|
||||||
.Pet_HatchingPotion_Floral {
|
.Pet_HatchingPotion_Floral {
|
||||||
background-image: url(/static/sprites/spritesmith-main-20.png);
|
background-image: url('~assets/images/sprites/spritesmith-main-20.png');
|
||||||
background-position: -483px -500px;
|
background-position: -483px -500px;
|
||||||
width: 68px;
|
width: 68px;
|
||||||
height: 68px;
|
height: 68px;
|
||||||
}
|
}
|
||||||
.Pet_HatchingPotion_Ghost {
|
.Pet_HatchingPotion_Ghost {
|
||||||
background-image: url(/static/sprites/spritesmith-main-20.png);
|
background-image: url('~assets/images/sprites/spritesmith-main-20.png');
|
||||||
background-position: -574px 0px;
|
background-position: -574px 0px;
|
||||||
width: 68px;
|
width: 68px;
|
||||||
height: 68px;
|
height: 68px;
|
||||||
}
|
}
|
||||||
.Pet_HatchingPotion_Golden {
|
.Pet_HatchingPotion_Golden {
|
||||||
background-image: url(/static/sprites/spritesmith-main-20.png);
|
background-image: url('~assets/images/sprites/spritesmith-main-20.png');
|
||||||
background-position: -574px -69px;
|
background-position: -574px -69px;
|
||||||
width: 68px;
|
width: 68px;
|
||||||
height: 68px;
|
height: 68px;
|
||||||
}
|
}
|
||||||
.Pet_HatchingPotion_Holly {
|
.Pet_HatchingPotion_Holly {
|
||||||
background-image: url(/static/sprites/spritesmith-main-20.png);
|
background-image: url('~assets/images/sprites/spritesmith-main-20.png');
|
||||||
background-position: -492px -400px;
|
background-position: -492px -400px;
|
||||||
width: 68px;
|
width: 68px;
|
||||||
height: 68px;
|
height: 68px;
|
||||||
}
|
}
|
||||||
.Pet_HatchingPotion_Peppermint {
|
.Pet_HatchingPotion_Peppermint {
|
||||||
background-image: url(/static/sprites/spritesmith-main-20.png);
|
background-image: url('~assets/images/sprites/spritesmith-main-20.png');
|
||||||
background-position: -574px -207px;
|
background-position: -574px -207px;
|
||||||
width: 68px;
|
width: 68px;
|
||||||
height: 68px;
|
height: 68px;
|
||||||
}
|
}
|
||||||
.Pet_HatchingPotion_Purple {
|
.Pet_HatchingPotion_Purple {
|
||||||
background-image: url(/static/sprites/spritesmith-main-20.png);
|
background-image: url('~assets/images/sprites/spritesmith-main-20.png');
|
||||||
background-position: -574px -276px;
|
background-position: -574px -276px;
|
||||||
width: 68px;
|
width: 68px;
|
||||||
height: 68px;
|
height: 68px;
|
||||||
}
|
}
|
||||||
.Pet_HatchingPotion_Red {
|
.Pet_HatchingPotion_Red {
|
||||||
background-image: url(/static/sprites/spritesmith-main-20.png);
|
background-image: url('~assets/images/sprites/spritesmith-main-20.png');
|
||||||
background-position: -574px -345px;
|
background-position: -574px -345px;
|
||||||
width: 68px;
|
width: 68px;
|
||||||
height: 68px;
|
height: 68px;
|
||||||
}
|
}
|
||||||
.Pet_HatchingPotion_RoyalPurple {
|
.Pet_HatchingPotion_RoyalPurple {
|
||||||
background-image: url(/static/sprites/spritesmith-main-20.png);
|
background-image: url('~assets/images/sprites/spritesmith-main-20.png');
|
||||||
background-position: -574px -414px;
|
background-position: -574px -414px;
|
||||||
width: 68px;
|
width: 68px;
|
||||||
height: 68px;
|
height: 68px;
|
||||||
}
|
}
|
||||||
.Pet_HatchingPotion_Shade {
|
.Pet_HatchingPotion_Shade {
|
||||||
background-image: url(/static/sprites/spritesmith-main-20.png);
|
background-image: url('~assets/images/sprites/spritesmith-main-20.png');
|
||||||
background-position: -574px -483px;
|
background-position: -574px -483px;
|
||||||
width: 68px;
|
width: 68px;
|
||||||
height: 68px;
|
height: 68px;
|
||||||
}
|
}
|
||||||
.Pet_HatchingPotion_Shimmer {
|
.Pet_HatchingPotion_Shimmer {
|
||||||
background-image: url(/static/sprites/spritesmith-main-20.png);
|
background-image: url('~assets/images/sprites/spritesmith-main-20.png');
|
||||||
background-position: 0px -569px;
|
background-position: 0px -569px;
|
||||||
width: 68px;
|
width: 68px;
|
||||||
height: 68px;
|
height: 68px;
|
||||||
}
|
}
|
||||||
.Pet_HatchingPotion_Skeleton {
|
.Pet_HatchingPotion_Skeleton {
|
||||||
background-image: url(/static/sprites/spritesmith-main-20.png);
|
background-image: url('~assets/images/sprites/spritesmith-main-20.png');
|
||||||
background-position: -69px -569px;
|
background-position: -69px -569px;
|
||||||
width: 68px;
|
width: 68px;
|
||||||
height: 68px;
|
height: 68px;
|
||||||
}
|
}
|
||||||
.Pet_HatchingPotion_Spooky {
|
.Pet_HatchingPotion_Spooky {
|
||||||
background-image: url(/static/sprites/spritesmith-main-20.png);
|
background-image: url('~assets/images/sprites/spritesmith-main-20.png');
|
||||||
background-position: -138px -569px;
|
background-position: -138px -569px;
|
||||||
width: 68px;
|
width: 68px;
|
||||||
height: 68px;
|
height: 68px;
|
||||||
}
|
}
|
||||||
.Pet_HatchingPotion_Thunderstorm {
|
.Pet_HatchingPotion_Thunderstorm {
|
||||||
background-image: url(/static/sprites/spritesmith-main-20.png);
|
background-image: url('~assets/images/sprites/spritesmith-main-20.png');
|
||||||
background-position: -207px -569px;
|
background-position: -207px -569px;
|
||||||
width: 68px;
|
width: 68px;
|
||||||
height: 68px;
|
height: 68px;
|
||||||
}
|
}
|
||||||
.Pet_HatchingPotion_White {
|
.Pet_HatchingPotion_White {
|
||||||
background-image: url(/static/sprites/spritesmith-main-20.png);
|
background-image: url('~assets/images/sprites/spritesmith-main-20.png');
|
||||||
background-position: -276px -569px;
|
background-position: -276px -569px;
|
||||||
width: 68px;
|
width: 68px;
|
||||||
height: 68px;
|
height: 68px;
|
||||||
}
|
}
|
||||||
.Pet_HatchingPotion_Zombie {
|
.Pet_HatchingPotion_Zombie {
|
||||||
background-image: url(/static/sprites/spritesmith-main-20.png);
|
background-image: url('~assets/images/sprites/spritesmith-main-20.png');
|
||||||
background-position: -345px -569px;
|
background-position: -345px -569px;
|
||||||
width: 68px;
|
width: 68px;
|
||||||
height: 68px;
|
height: 68px;
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 55 KiB After Width: | Height: | Size: 55 KiB |
|
Before Width: | Height: | Size: 535 KiB After Width: | Height: | Size: 535 KiB |
|
Before Width: | Height: | Size: 330 KiB After Width: | Height: | Size: 330 KiB |
|
Before Width: | Height: | Size: 297 KiB After Width: | Height: | Size: 297 KiB |
|
Before Width: | Height: | Size: 155 KiB After Width: | Height: | Size: 155 KiB |
|
Before Width: | Height: | Size: 145 KiB After Width: | Height: | Size: 145 KiB |
|
Before Width: | Height: | Size: 138 KiB After Width: | Height: | Size: 138 KiB |
|
Before Width: | Height: | Size: 157 KiB After Width: | Height: | Size: 157 KiB |
|
Before Width: | Height: | Size: 140 KiB After Width: | Height: | Size: 140 KiB |
|
Before Width: | Height: | Size: 161 KiB After Width: | Height: | Size: 161 KiB |
|
Before Width: | Height: | Size: 151 KiB After Width: | Height: | Size: 151 KiB |
|
Before Width: | Height: | Size: 175 KiB After Width: | Height: | Size: 175 KiB |
|
Before Width: | Height: | Size: 163 KiB After Width: | Height: | Size: 163 KiB |
|
Before Width: | Height: | Size: 59 KiB After Width: | Height: | Size: 59 KiB |
|
Before Width: | Height: | Size: 23 KiB After Width: | Height: | Size: 23 KiB |
|
Before Width: | Height: | Size: 72 KiB After Width: | Height: | Size: 72 KiB |
|
Before Width: | Height: | Size: 66 KiB After Width: | Height: | Size: 66 KiB |
|
Before Width: | Height: | Size: 142 KiB After Width: | Height: | Size: 142 KiB |
|
Before Width: | Height: | Size: 132 KiB After Width: | Height: | Size: 132 KiB |
|
Before Width: | Height: | Size: 136 KiB After Width: | Height: | Size: 136 KiB |
|
Before Width: | Height: | Size: 116 KiB After Width: | Height: | Size: 116 KiB |
|
Before Width: | Height: | Size: 347 KiB After Width: | Height: | Size: 347 KiB |
@@ -1,13 +1,13 @@
|
|||||||
{{#sprites}}
|
{{#sprites}}
|
||||||
.{{name}} {
|
.{{name}} {
|
||||||
background-image: url(/static/sprites/{{{escaped_image}}});
|
background-image: url('~assets/images/sprites/{{{escaped_image}}}');
|
||||||
background-position: {{px.offset_x}} {{px.offset_y}};
|
background-position: {{px.offset_x}} {{px.offset_y}};
|
||||||
width: {{px.width}};
|
width: {{px.width}};
|
||||||
height: {{px.height}};
|
height: {{px.height}};
|
||||||
}
|
}
|
||||||
{{#if custom}}
|
{{#if custom}}
|
||||||
.customize-option.{{name}} {
|
.customize-option.{{name}} {
|
||||||
background-image: url(/static/sprites/{{{escaped_image}}});
|
background-image: url('~assets/images/sprites/{{{escaped_image}}}');
|
||||||
background-position: {{custom.px.offsetX}} {{custom.px.offsetY}};
|
background-position: {{custom.px.offsetX}} {{custom.px.offsetY}};
|
||||||
width: {{custom.px.width}};
|
width: {{custom.px.width}};
|
||||||
height: {{custom.px.height}};
|
height: {{custom.px.height}};
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ module.exports = function staticMiddleware (expressApp) {
|
|||||||
// Expose static files for new client
|
// Expose static files for new client
|
||||||
expressApp.use('/static/js', express.static(`${BASE_DIR}/dist-client/static/js`, { maxAge: MAX_AGE }));
|
expressApp.use('/static/js', express.static(`${BASE_DIR}/dist-client/static/js`, { maxAge: MAX_AGE }));
|
||||||
expressApp.use('/static/css', express.static(`${BASE_DIR}/dist-client/static/css`, { maxAge: MAX_AGE }));
|
expressApp.use('/static/css', express.static(`${BASE_DIR}/dist-client/static/css`, { maxAge: MAX_AGE }));
|
||||||
expressApp.use('/static/img', express.static(`${BASE_DIR}/dist-client/static/img`, { maxAge: MAX_AGE }));
|
expressApp.use('/static/images', express.static(`${BASE_DIR}/dist-client/static/images`, { maxAge: MAX_AGE }));
|
||||||
|
|
||||||
// @TODO img/js/css under /static have their names hashed after every change so they can be cached
|
// @TODO img/js/css under /static have their names hashed after every change so they can be cached
|
||||||
// Not files in /audio and /sprites, that's why we don't cache them.
|
// Not files in /audio and /sprites, that's why we don't cache them.
|
||||||
|
|||||||