mirror of
https://github.com/codeninjasllc/discourse.git
synced 2025-04-06 20:16:00 -04:00
Merge pull request #1654 from ScotterC/patch-2
Avoiding double manifest files
This commit is contained in:
commit
c9fd14acc4
1 changed files with 1 additions and 0 deletions
|
@ -9,6 +9,7 @@ task 'assets:precompile' => 'environment' do
|
|||
regex = /(-{1}[a-z0-9]{32}*\.{1}){1}/
|
||||
assets.each do |file|
|
||||
next if File.directory?(file) || file !~ regex
|
||||
next if File.extname(file) == ".json" # Avoid duplicate manifest
|
||||
|
||||
source = file.split('/')
|
||||
source.push(source.pop.gsub(regex, '.'))
|
||||
|
|
Loading…
Add table
Reference in a new issue