joelcarlton / sublime-combineandminify Goto Github PK
View Code? Open in Web Editor NEWCombine a list of JavaScript files Into a single master and minified version
License: GNU General Public License v2.0
Combine a list of JavaScript files Into a single master and minified version
License: GNU General Public License v2.0
I've got TypeScript-Build-System, but I cant build when CombineAndMinify is installed. What can I do?
Having a slow connection you may wait almost forever.. Example of log is below:
Initiating Minification
Trashing Old Master File
Sending JavaScript for Minification
Saving Minified Version
Operation Compleated in 21.42 seconds.
I have a local minimizer in ST. Why don't just use it? I can't find a hint how to set up this plugin to use the local minimizer.
Hi, I keep getting the following error at startup. What can I do to resolve it?
reloading plugin CombineAndMinify.CombineAndMinfiy
Traceback (most recent call last):
File "C:\Program Files\Sublime Text 3\sublime_plugin.py", line 73, in reload_plugin
m = importlib.import_module(modulename)
File "X/importlib/__init__.py", line 88, in import_module
File "<frozen importlib._bootstrap>", line 1584, in _gcd_import
File "<frozen importlib._bootstrap>", line 1565, in _find_and_load
File "<frozen importlib._bootstrap>", line 1532, in _find_and_load_unlocked
File "C:\Program Files\Sublime Text 3\sublime_plugin.py", line 671, in load_module
exec(compile(source, source_path, 'exec'), mod.__dict__)
File "CombineAndMinfiy in C:\Users\Stagiair\AppData\Roaming\Sublime Text 3\Installed Packages\CombineAndMinify.sublime-package", line 27
print '\nInitiating Minification'
^
SyntaxError: invalid syntax
Thank you.
It seems like it doesn't recognize the /C/projectDir - the way that project paths are defined in sublime text 2. Had to import re and do the following to get it to work.
fileList = re.sub(r"^/C", 'C:', fileList)
fileList = re.sub("/", r'\\', fileList)
inPath = re.sub(r"^/C", 'C:', inPath)
inPath = re.sub("/", r'\\', inPath)
outPath = re.sub(r"^/C", 'C:', outPath)
outPath = re.sub("/", r'\\', outPath)
jsMaster = re.sub(r"^/C", 'C:', jsMaster)
jsMaster = re.sub("/", r'\\', jsMaster)
jsMinify = re.sub(r"^/C", 'C:', jsMinify)
jsMinify = re.sub("/", r'\\', jsMinify)
Great little script by the way.
Hello,
I was using this to combine a bunch of external JS files and followed the instructions as they stated. Everytime I click build, I get the error that the build failed because a file list doesn't exist. Is it referring to the files.txt file? I've created that per the instructions.
Here is my Sublime text 2 project file:
{
"folders":
[
{
"path": "Compressed"
}
],
"settings":
{
"Combine: FileList": "/C/Users/b/Desktop/Shopify/scripts/Compressed/files.txt",
"Combine: InPath": "/C/Users/b/Desktop/Shopify/scripts/Compressed/public/js/",
"Combine: MasterName": "master.js",
"Combine: MinifyName": "master.min.js",
"Combine: OutPath": "/C/Users/b/Desktop/Shopify/scripts/Compressed/private/js/"
}
}
Am I doing something incorrectly? Please help, thanks.
Works in Sublime Text 2 though ...
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.