Cześć,
Na Stackoverfllow cisza, nie to co dawniej, spróbuje tutaj.
Używam Parcel przy budowie stron. Mam dwie strony w katalogu głównym index.htm i article.html.
Dopóki nie dodam w a href adresu article.html obie działają dobrze.
Po dodaniu, w podglądzie znikają style w index.htm, a w article.htm są
Style dodaje przez plik index.js.
package.json
{
"name": "XXX",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"dev": "parcel src/index.html src/arcitle.html",
"prod": "parcel build src/index.html src/arcitle.html"
},
"keywords": [],
"author": "",
"license": "ISC",
"devDependencies": {
"parcel-bundler": "^1.12.5",
"sass": "^1.34.0"
},
"dependencies": {
"autoprefixer": "^10.2.6",
"jquery": "^3.6.0",
"postcss-modules": "^4.1.0"
}
}