I use this project template in almost all of my static site projects, which need the basic set of frontend tools.
Project documentation here: https://kimmobrunfeldt.github.io/dont-copy-paste-this-frontend-template/
Frontend template project to get you started with frontend development
Home Page: https://kimmobrunfeldt.github.io/dont-copy-paste-this-frontend-template/
I use this project template in almost all of my static site projects, which need the basic set of frontend tools.
Project documentation here: https://kimmobrunfeldt.github.io/dont-copy-paste-this-frontend-template/
You may be tempted to use a shimming plugin for browserify to ideally include these libraries to your build tool chain. I would advice to forget all that hassle and just add the external module as a script tag before bundle.js:
<script src="http://code.highcharts.com/highcharts.js"></script>
and assume that Highcharts
is a globally available variable similar to window
and document
variables. It's not ideal, and causes browser to do an extra request but it will save you from the never ending hassle of supporting various module import standards.
You can try to setup shim plugins, I'm not sure how they work nowadays but you've been warned.
As of Windows 10 Anniversary update we now have Bash on Ubuntu on Windows. It's not perfect but if Windows devs use it the portability issues mostly go away. Hoorah!!!
Prior to this I used the git for windows bash shelland started each npm script that requires portability with bash -c ""; however escaping quotes can become a real mess.
I noticed you scripts are not strictly portable as you set env vars at the start if the line. There is a npm package you can use but I think we can forget such hacks that now as mention above.
Don't worry, it will shrink a lot in production build.
As an example, let's see how big a bundle.js this project has:
Even if the initial development version would be >4M in size, it's should be OK. E.g React is quite a big library and it increases the size a lot. If you need to analyze how you could reduce the size, disc is a useful tool to visualize the dependencies' sizes: https://github.com/hughsk/disc
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.