Comments (8)
@lukyth that was it! I was importing the main css file from my js entrypoint. Removing that in favor of including the link tag properly includes index.css
as a key in the manifest.
Thanks!!
from parcel-reporter-bundle-manifest.
@dudo Is it possible to share the setup that reproduce this?
from parcel-reporter-bundle-manifest.
// package.json
{
"name": "browse_app",
"version": "0.1.0",
"private": true,
"description": "",
"scripts": {
"start": "parcel serve ./src/index.html -p 1264 --hmr-port 1265",
"build": "parcel build ./src/index.html"
},
"dependencies": {
"@babel/runtime": "^7.12.1",
"body-scroll-lock": "^3.1.5",
"framer-motion": "^2.9.4",
"json-api-serializer": "^2.5.0",
"react": "^17.0.0",
"react-dom": "^17.0.0",
"react-router-dom": "^5.2.0"
},
"devDependencies": {
"@babel/core": "^7.12.3",
"@babel/plugin-transform-react-jsx": "^7.12.1",
"@babel/plugin-transform-runtime": "^7.12.1",
"@babel/preset-env": "^7.12.1",
"babel-eslint": "^10.1.0",
"eslint": "^7.12.1",
"eslint-plugin-react": "^7.21.5",
"eslint-plugin-react-hooks": "^4.2.0",
"parcel": "^2.0.0-nightly.433",
"parcel-reporter-bundle-manifest": "^0.3.1"
},
"browserslist": {
"production": [
">0.2%",
"not dead",
"not op_mini all"
],
"development": [
"last 1 chrome version",
"last 1 firefox version",
"last 1 safari version"
]
}
}
// .babelrc
{
"plugins": [
[
"@babel/plugin-transform-runtime",
{
"regenerator": true
}
],
[
"@babel/plugin-transform-react-jsx",
{
"runtime": "automatic"
}
]
]
}
// .parcelrc
{
"extends": "@parcel/config-default",
"reporters": ["...", "parcel-reporter-bundle-manifest"]
}
Setup was pretty straight forward... thanks for taking a look =)
from parcel-reporter-bundle-manifest.
@dudo And the CSS file is being imported from ./src/index.html
with something like <link rel="stylesheet" href="./styles.css" />
right? Would it be possible to share a minimal setup that could reproduce this via CodeSandbox?
from parcel-reporter-bundle-manifest.
I see. Thanks for the confirmation! I think it should include that CSS file in the generated manifest as well so I'm gonna reopen this issue until it's resolved. And thanks for reporting btw! 👍
from parcel-reporter-bundle-manifest.
@dudo Which version of Parcel 2/this plugin/Node.js that you are using? With those info, I might be able to reproduce the issue and help you with it.
I tried to build with a CSS file imported from JS file, and I could see the CSS file in the manifest as well:
The setup I tested with is at https://github.com/autifyhq/parcel-reporter-bundle-manifest/tree/main/tests/fixtures/parcel-beta, with the JS import CSS added in 34a0690.
from parcel-reporter-bundle-manifest.
"dependencies": {
"@babel/runtime": "^7.12.1",
"react": "^17.0.0",
"react-dom": "^17.0.0",
"react-router-dom": "^5.2.0"
},
"devDependencies": {
"@babel/core": "^7.12.3",
"@babel/plugin-transform-react-jsx": "^7.12.1",
"@babel/plugin-transform-runtime": "^7.12.1",
"@babel/preset-env": "^7.12.1",
"babel-eslint": "^10.1.0",
"eslint": "^7.12.1",
"eslint-plugin-react": "^7.21.5",
"eslint-plugin-react-hooks": "^4.2.0",
"parcel": "^2.0.0-nightly.433",
"parcel-reporter-bundle-manifest": "^0.3.1"
},
FROM node:14
LABEL maintainer="[email protected]"
WORKDIR /usr/src/app
ENV PATH ./node_modules/.bin:$PATH
# install and cache app dependencies
ADD package*.json ./
RUN npm install --silent
ADD . ./
EXPOSE 1264
# start app
ENTRYPOINT [ "npm" ]
CMD [ "start" ]
from parcel-reporter-bundle-manifest.
@dudo This should be fixed in v0.3.2 now. Let me know if you still find any problem! 😃
from parcel-reporter-bundle-manifest.
Related Issues (12)
- Write tests
- Add CONTRIBUTING.md
- [ERR_INVALID_ARG_TYPE]: The "from" argument must be of type string. HOT 4
- Add type definition for Reporter to resolve TODO
- `parcel build` generates multiple manifest.json when using `package.json#targets`
- Add LICENSE
- Add public-dir, host and port to manifest
- modern / legacy builds and "nomodule" fallback script tag
- function normalisePath replace publicUrl http://hostname to http:/hostname
- Setup CI HOT 1
- Add linting / formatting
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from parcel-reporter-bundle-manifest.