Project setup
Task 1
10 minutes
To start building your Chrome printing extension, you’ll first need to create an empty Chrome extension—a framework that will house your customized HTML, JS, and JSON.
Your printing extension will live in a single file folder. For the purposes of this tutorial, we’ll name this folder print-ext. For now, this folder will contain four empty files: manifest.json
, background.js
, printers.html
, and printers.js
.
Once complete, your file structure will look like this:
Copy the following code to your manifest.json
to create just the basic foundation of a Chrome extension: