mirror of
https://github.com/konvajs/konva.git
synced 2025-04-05 20:48:28 +08:00
All comments are now removed from the production file.
This commit is contained in:
parent
286b726823
commit
7a4bf6ec26
9
Thorfile
9
Thorfile
@ -1,9 +1,6 @@
|
||||
require 'json/pure'
|
||||
|
||||
class Build < Thor
|
||||
include Thor::Actions
|
||||
# include Thor::Shell::Basic
|
||||
|
||||
class Build < Thor
|
||||
# This is the list of files to concatenate. The first file will appear at the top of the final file. All files are relative to the lib directory.
|
||||
FILES = [
|
||||
"license.js", "src/GlobalObject.js", "src/Node.js", "src/Container.js", "src/Stage.js",
|
||||
@ -26,7 +23,9 @@ class Build < Thor
|
||||
require 'json/pure'
|
||||
require 'uglifier'
|
||||
File.open("dist/kinetic.min.js", "w") do |file|
|
||||
file.puts Uglifier.compile(concatenate())
|
||||
uglify = Uglifier.compile(concatenate())
|
||||
uglify.sub!(/\*\/ .+ \*\//xm, "*/")
|
||||
file.puts uglify
|
||||
end
|
||||
puts ":: Minifying the file /dist/kinetic.min.js..."
|
||||
puts " -> Done!"
|
||||
|
7
dist/kinetic.min.js
vendored
7
dist/kinetic.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user