mirror of
https://github.com/freeCodeCamp/devdocs
synced 2024-11-16 19:48:10 +01:00
Uglifier::Error: Unexpected token: punc ()).
To use ES6 syntax, harmony mode must be enabled with Uglifier.new(:harmony => true).
This commit is contained in:
parent
92b009800d
commit
a06462f6e3
1 changed files with 1 additions and 1 deletions
|
@ -94,7 +94,7 @@ class App < Sinatra::Application
|
||||||
['/manifest.json', { 'Cache-Control' => 'public, max-age=86400' }]
|
['/manifest.json', { 'Cache-Control' => 'public, max-age=86400' }]
|
||||||
]
|
]
|
||||||
|
|
||||||
sprockets.js_compressor = Uglifier.new output: { beautify: true, indent_level: 0 }
|
sprockets.js_compressor = Uglifier.new output: { :harmony => true, beautify: true, indent_level: 0 }
|
||||||
sprockets.css_compressor = :sass
|
sprockets.css_compressor = :sass
|
||||||
|
|
||||||
Sprockets::Helpers.configure do |config|
|
Sprockets::Helpers.configure do |config|
|
||||||
|
|
Loading…
Reference in a new issue