TimGeyssens / BundlingAndMinificationForTheMasses

UI layer on top of http://aspnetoptimization.codeplex.com/ for Umbraco
http://www.nibble.be/?p=237
25 stars 5 forks source link

Broken in 7.5 #14

Closed miyagisan221b closed 7 years ago

miyagisan221b commented 7 years ago

Installing the latest Optimus core package into Umbraco 7.5 appears to work fine until you go to create a new bundle. Here's the error - http://screencast.com/t/0vvICacSWm.

I also received an error at one point about bundles.config not existing (I worked around this by cloning and renaming bundles.tmp.config.

TimGeyssens commented 7 years ago

Ok thanks for reporting will take a look!

TimGeyssens commented 7 years ago

Hmm did you upgrade your install? Seems like it is just due to a missing entry in a Umbraco config file

TimGeyssens commented 7 years ago

So that might have been overwritten during upgrade

miyagisan221b commented 7 years ago

Yes! It could well be. I upgraded from 7.4 to 7.5


From: Tim Geyssens notifications@github.com<mailto:notifications@github.com> Sent: Thursday, October 13, 2016 4:41 pm Subject: Re: [TimGeyssens/BundlingAndMinificationForTheMasses] Broken in 7.5 (#14) To: TimGeyssens/BundlingAndMinificationForTheMasses bundlingandminificationforthemasses@noreply.github.com<mailto:bundlingandminificationforthemasses@noreply.github.com> Cc: Danny Summers danny@indigoweb.com.au<mailto:danny@indigoweb.com.au>, Author author@noreply.github.com<mailto:author@noreply.github.com>

Hmm did you upgrade your install? Seems like it is just due to a missing entry in a Umbraco config file

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/TimGeyssens/BundlingAndMinificationForTheMasses/issues/14#issuecomment-253427563, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ABlnTsnoYeXP0Mw5tcGD0Kl6R-xQQgi0ks5qzdKagaJpZM4KVO7j.

TimGeyssens commented 7 years ago

Ok well in that case just add the following

 <!-- Optimus  Stuff -->
        <nodeType alias="scriptBundle">
          <header>Script bundle</header>
          <usercontrol>/create/simple.ascx</usercontrol>
          <tasks>
            <create assembly="Optimus" type="Umbraco.Tasks.ScriptBundleTasks" />
            <delete assembly="Optimus" type="Umbraco.Tasks.ScriptBundleTasks" />
          </tasks>
        </nodeType>
        <nodeType alias="styleBundle">
          <header>Style bundle</header>
          <usercontrol>/create/simple.ascx</usercontrol>
          <tasks>
            <create assembly="Optimus" type="Umbraco.Tasks.StyleBundleTasks" />
            <delete assembly="Optimus" type="Umbraco.Tasks.StyleBundleTasks" />
          </tasks>
        </nodeType>
        <nodeType alias="initstylesheetsNew">
          <header>Dynamic Stylesheets</header>
          <usercontrol>../../App_Plugins/Optimus/Dialogs/CreateStyleSheet.ascx</usercontrol>
          <tasks>
            <delete assembly="Optimus" type="Umbraco.Tasks.DynamicStyleTasks" />
          </tasks>
        </nodeType>
        <nodeType alias="initscriptsNew">
          <header>Dynamic Scripts</header>
          <usercontrol>../../App_Plugins/Optimus/Dialogs/CreateScript.ascx</usercontrol>
          <tasks>
            <delete assembly="Optimus" type="Umbraco.Tasks.DynamicScriptTasks" />
          </tasks>
        </nodeType>
        <!-- End Optimus  Stuff -->

to the /umbraco/config/create/ui.xml file, that should allow you to create bundles

miyagisan221b commented 7 years ago

You’re an absolute champion Tim – thank you so much.

TimGeyssens commented 7 years ago

No prob, glad I could help :)