Project

General

Profile

Actions

Feature #26908

open

Add ability to have hooks inisde application.js and application.css via asset pipeline

Added by Aleksandar Pavic about 7 years ago. Updated over 5 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Plugin API
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:

Description

I'm not sure if this is a good idea or not, and I'm not sure anyone except maybe JP Lang would know the best course of action.

There are already some discussions about this topic

Like: Assets Pipeline

And there are already some efforts
https://github.com/Tab10id/redmine_plugin_asset_pipeline

Move existing application.js contents to some other file like base.js and include it via asset pipeline and enable plugins to add their own js to application.js as a manifest which would compile application.js later

So eventually it would look like this

// This is a manifest file that'll be compiled into application.js, which will include all the files
// listed below.
//
// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
// or any plugin's vendor/assets/javascripts directory can be referenced here using a relative path.
//
// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
// compiled file.
//
// Read Sprockets README (https://github.com/rails/sprockets#sprockets-directives) for details
// about supported directives.
//
//= require jquery
//= require base
//= require whatever from plugns... 

Actions #1

Updated by Toshi MARUYAMA about 7 years ago

  • Description updated (diff)
Actions #2

Updated by Aleksandar Pavic almost 6 years ago

Any plans for this request?

Actions #3

Updated by Stephane Evr over 5 years ago

+1

Having the assets pipeling working in redmine would be a must

Actions #4

Updated by David Escala over 5 years ago

+1 I would like to have Rails' Asset Pipeline enabled in Redmine

Actions

Also available in: Atom PDF