Available to Pro subscribers.

Learn more
Blog chevron_right News
Feb 28, 2018

Introducing the Vanilla Template to CodeSandbox

CodeSandbox got support for the Vanilla template, based on the Parcel bundler.

Ives van Hoorne
Ives van Hoorne
Introducing the Vanilla Template to CodeSandbox

From day one we've always tied templates to a CLI. The main reason for this is that we want to keep sandboxes simple, you shouldn't need to do any configuration to get started. I didn't want to create a 'Vanilla' template because there was no way to create 'vanilla' web projects without configuration, until recently.


A new bundler called 'Parcel' was released in December by Devon Govett. Parcel is a web application bundler that values zero configuration. They reuse classic web concepts, like using index.html as the entry point of the application, which makes it really easy and intuitive to get started with a new project. You only have to create an index.html and run parcel index.html to get a working application. They automatically detect what kind of web application you're running, and adapt the configuration to that if it's not specifically set.

This is aligns perfectly with the values of CodeSandbox. There is almost no friction to get started, and all the needed configuration is automatically detected & installed. That's why I decided to finally build a Vanilla template and use Parcel as our configuration behind it.

Vanilla Template

We have a new sandbox called vanilla, unlike other sandboxes, this sandbox has index.html as its entry. From this index.html you can add script and link tags to other files and they will be added to the bundle. We support all loaders that Parcel supports, so we support:

We also recognize the difference between:

import styles from "/styles.css";


import "/styles.css";

In the first code block we will generate CSS modules from the CSS file, and in the second block we won't.

You can try it out here:


Like Parcel, we automatically do configuration for you. We automatically detect if you're using React or Preact and will adjust our Babel configuration for it. We do support Babel/TypeScript configuration, so you can also choose to do your own configuration by creating a tsconfig.json or a .babelrc.

GitHub, Zip Extraction & Deployment Integration

Like the other templates, you can create repos, make commits and PRs, download and deploy sandboxes using this template. Without leaving the browser.

Beta Warning

This is our first template that uses HTML as an entry point, so there can be bugs or unintended behaviour that still needs to be solved. Please let us know in the repo if you find any issues!


I want to thank Devon Govett for building this beautiful bundler, I was able to effortlessly build an application in it. Great work!

If you like what we're doing, consider becoming a contributor or a patron! You can stay up to date with CodeSandbox news either on @CompuIves or @codesandbox.

Keep reading about News .

Meet Boxy, Your New AI Coding Assistant
News May 25, 2023

Meet Boxy, Your New AI Coding Assistant

Bring your ideas to life faster by having AI contextually explain, generate and refactor code.

Unleash The Power of Go in CodeSandbox
News May 18, 2023

Unleash The Power of Go in CodeSandbox

It's finally here! CodeSandbox now officially supports our most requested programming language, Go.

Announcing VS Code Support for Sandboxes
News May 8, 2023

Announcing VS Code Support for Sandboxes

Open sandboxes directly in VS Code and bring the best of cloud development to your local workspace.

Say Hello To PHP Support in CodeSandbox
News Mar 23, 2023

Say Hello To PHP Support in CodeSandbox

You can now spin up a PHP environment in CodeSandbox and build projects of any size using our cloud development environment.