mercredi 29 mai 2019

Parceljs configuration

I have a problem with import html-files in index.html.

My package.json

{
  "name": "test",
  "version": "1.0.0",
  "description": "test",
  "author": "test",
  "license": "ISC",
  "dependencies": {
    "del": "^3.0.0",
    "i": "^0.3.6"
  },
  "devDependencies": {
    "parcel-bundler": "^1.12.3"
  },
  "scripts": {
    "start": "parcel src/pages/index.html"
  }
}

My project structure

I tried include header.html in index.html like this, but it's didn't work. <include src="src/pages/templates/header.html"></include>

How can i include html files on index.html page?




Aucun commentaire:

Enregistrer un commentaire