mirror of
https://github.com/konvajs/konva.git
synced 2025-06-28 09:48:30 +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'
|
require 'json/pure'
|
||||||
|
|
||||||
class Build < Thor
|
class Build < Thor
|
||||||
include Thor::Actions
|
|
||||||
# include Thor::Shell::Basic
|
|
||||||
|
|
||||||
# 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.
|
# 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 = [
|
FILES = [
|
||||||
"license.js", "src/GlobalObject.js", "src/Node.js", "src/Container.js", "src/Stage.js",
|
"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 'json/pure'
|
||||||
require 'uglifier'
|
require 'uglifier'
|
||||||
File.open("dist/kinetic.min.js", "w") do |file|
|
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
|
end
|
||||||
puts ":: Minifying the file /dist/kinetic.min.js..."
|
puts ":: Minifying the file /dist/kinetic.min.js..."
|
||||||
puts " -> Done!"
|
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