Installation
The pages work as they are: open src/index.html in a browser, or upload the src/ folder to your host. You only need the steps below if you want to edit the Sass files and recompile the CSS.
Open the template without a build#
- Unzip the download.
- Open
website-admin-vendor-source/src/index.htmlin your browser. The admin panel starts atsrc/admin/index.htmland the vendor dashboard atsrc/vendor/index.html. - To publish, upload the contents of
src/to your web host's public folder.
The compiled CSS is already in the package (src/css/, src/admin/assets/css/), so nothing else is needed.
Set up the Sass build#
The build uses Gulp to compile Sass and runs a local server that reloads when you save.
Download and install Node.js.
Open a terminal and go to the source folder:
cd website-admin-vendor-sourceInstall Gulp's command-line tool globally. If you installed the old global
gulppackage before, remove it first so the two don't collide:npm rm --global gulp npm install --global gulp-cli gulp --versionInstall the project's packages:
npm install
The build uses node-sass 7, which supports Node.js up to version 17. If npm install fails while building node-sass, switch to Node.js 16 (for example with nvm) and run it again.
Run the development server#
gulp watch
This compiles the Sass once, opens the site from src/ in your browser (Browsersync, usually at http://localhost:3000), and keeps running. Every time you save a .scss file it recompiles and reloads the page:
| You edit | It writes |
|---|---|
src/scss/**/*.scss | src/css/ (storefront) |
src/admin/assets/scss/**/*.scss | src/admin/assets/css/ (admin panel) |
Saving an HTML file in src/ reloads the browser too. Press Ctrl+C to stop.
There is no separate production build: gulp watch (or gulp sass for a single compile without the server) writes the final CSS straight into src/. Upload src/ when you're done.