Answer the question
In order to leave comments, you need to log in
How to distribute files into folders when building production in parcel?
By default, when building production in parcel, all files (js, css, html, fonts, pictures, etc.) are all distributed into one folder. How can all this be divided into folders?
package.json
{
"name": "parcel",
"version": "1.0.0",
"description": "",
"main": "js/main.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"start": "parcel index.pug --open",
"build": "parcel build index.pug -d docs --public-url ./"
},
"keywords": [],
"author": "",
"license": "ISC",
"devDependencies": {
"cssnano": "^4.1.10",
"pug": "^2.0.4",
"stylus": "^0.54.7"
},
"dependencies": {
"bootstrap": "^4.3.1",
"components": "^0.1.0",
"jquery": "^3.4.1",
"plugins": "^0.4.2",
"popper.js": "^1.15.0"
}
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question