Git Product home page Git Product logo

neosrulez.dynamicresources's Introduction

Dynamic resources for Neos CMS

A package for Neos CMS which render and cache dynamic CSS (scss) and Javascript resources.

Installation

composer require neosrulez/dynamicresources

Usage

NeosRulez:
  DynamicResources:
    site:
      resources:
        head:
          scripts:
            acmeHeaderJs: 'resource://Acme.Package/Private/JavaScript/Scripts.js'
          styles:
            acmeHeaderCss: 'resource://Acme.Package/Private/Styles/Styles.scss'
        footer:
          scripts:
            acmeFooterJs: 'resource://Acme.Package/Private/JavaScript/Footer/Scripts.js'
          styles:
            acmeFooterCss: 'resource://Acme.Package/Private/Styles/Footer/Styles.scss'

Author

neosrulez.dynamicresources's People

Contributors

bbtimx avatar patriceckhart avatar

Watchers

 avatar  avatar

neosrulez.dynamicresources's Issues

Deploy to production

I moved my Neos development instance to my production environment.

Edit my .htaccess
setEnv FLOW_CONTEXT Production

Everything runs fine but I think NeosRulez.DynamicResources still compile the Bootstrap SCSS code on every page view and therefore the page ist very slow.

How is it possible to prevent compiling CSSC code and use the minified result on production mode?

asset generation only in production mode?

I tried out your great boilerplate: https://github.com/patriceckhart/NeosCMS-Boilerplate

but the assets (css/js) are only created when using production mode

FLOW_CONTEXT=Production ./flow server:run

a simple ./flow server:run or FLOW_CONTEXT=Development./flow server:run would lead to this error on the asset url:

Notice: Undefined index: FLOW_CONTEXT in /NeosCMS-Boilerplate/Data/Temporary/Development/Cache/Code/Flow_Object_Classes/NeosRulez_DynamicResources_Controller_ResourceController.php line 57

Is this wanted behavior?
If so, I would make a pullrequest and add this info to the Readme for the NeosCMS-Boilerplate ;)

Bootstrap v5.1.2 compile error

Using the latest Bootstrap v5.1.2 gives me 2 compiling error:

expecting color, null received: /var/www/neos.dev/Packages/Sites/Raw.Site/Resources/Private/Styles/scss/mixins/_table-variants.scss on line 5, at column 5

expecting color, null received: /var/www/neos.dev/Packages/Sites/Raw.Site/Resources/Private/Styles/scss/mixins/_buttons.scss on line 41, at column 7

If I comment these 2 line out:

// @import "tables";
// @import "buttons";

it works.

Maybe the same: scssphp/scssphp#434 or scssphp/scssphp#440

Can you please update scssphp/scssphp to the latest version?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.