parcel-bundler / parcel

The zero configuration build tool for the web. 📦🚀
https://parceljs.org
MIT License
43.37k stars 2.27k forks source link

Keep .html files for SEO? #1264

Closed ancientaccount closed 6 years ago

ancientaccount commented 6 years ago

Hello, I recently saw the issue #280 that talks about my current problem. However, I still don't know how to keep the names of my html files. Are there parameters to add in the command or a configuration file to create to add exceptions? I did not find any answer in the documentation of the site.

I got this /dist/6f7f56f0805baabfc8d30f88319b81ff.html instead of test.html by this: <a href="test.html">My link</a> in index.html

Command executed: parcel src/index.html

Thanks in advance, Flynrod

DeMoorJasper commented 6 years ago

You are on an outdated version of parcel, in Parcel 1.7.1 this should be the original name

ancientaccount commented 6 years ago

Here's my package.json: (I'm using 1.7.1 version of Parcel)

  "name": "SampleWebsite",
  "version": "1.0.0",
  "description": "",
  "main": "index.js",
  "scripts": {
    "test": "echo \"Error: no test specified\" && exit 1"
  },
  "keywords": [],
  "author": "",
  "license": "ISC",
  "devDependencies": {
    "autoprefixer": "^8.4.1",
    "babel-cli": "^6.26.0",
    "babel-preset-env": "^1.6.1",
    "css-mqpacker": "^6.0.2",
    "jquery": "^3.3.1",
    "node-sass": "^4.9.0",
    "parcel-bundler": "^1.7.1",
    "parcel-plugin-bundle-manifest": "^0.1.1",
    "postcss": "^6.0.22"
  }
}

sans titre

DeMoorJasper commented 6 years ago

@Flynrod U probably have a global parcel installed. You could use npx or the scripts section inside the package.json, or update the global parcel

ancientaccount commented 6 years ago

Thanks, I didn't know that Parcel has to be used with its local dependency. It works with ./node_modules/.bin/parcel src/index.html