shaunakv1 / easypack Goto Github PK
View Code? Open in Web Editor NEWA super simple build tool made in node to pack marked js and css files in a html file into single timestamped js and css file
A super simple build tool made in node to pack marked js and css files in a html file into single timestamped js and css file
It seems to be impossible to create two different packages for two different html files within the same project.
So something like this does not work:
var sb = require("easypack");
sb.build({
webRoot: "root",
inputHtml: "index.html",
outputHtml: "index.build.html",
jsBuildName: "main.js",
timeStampBuild: false
});
sb.build({
webRoot: "root",
inputHtml: "rulesIndex.html",
outputHtml: "rulesIndex.build.html",
jsBuildName: "rules.js",
timeStampBuild: false
});
it only creates rulesIndex.build.html, the first html will not be created.
It seams that the build() function always clears the build folder.
When css is moved into build folder , relative references like from 'img' folder break the css. Same problem with fontawesome css, as it needs fonts from relative dir 'fonts'
Currently only packed javascript and css files are being created into the build directory and a index.html is created on the same level as input html. Then the new packed js and css files are included in the new html.
Instead create a whole new clean copy of the project inside the build directory. This will also fix this issue#2 with relative paths.
Thanks for the effort, but two important issues make it unusable (i was trying to build an Ionic app).
I have a very simple config setup...
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.