最新消息:Welcome to the puzzle paradise for programmers! Here, a well-designed puzzle awaits you. From code logic puzzles to algorithmic challenges, each level is closely centered on the programmer's expertise and skills. Whether you're a novice programmer or an experienced tech guru, you'll find your own challenges on this site. In the process of solving puzzles, you can not only exercise your thinking skills, but also deepen your understanding and application of programming knowledge. Come to start this puzzle journey full of wisdom and challenges, with many programmers to compete with each other and show your programming wisdom! Translated with DeepL.com (free version)

javascript - How to make bundle.css and bundle.js files - Stack Overflow

matteradmin7PV0评论

I've been creating a basic website and have been working on the front end. And I preview it using the mand npm start.

In my directory, I have these files

app.js
app.scss
index.html
package-lock.json
package.json
webpack.config.js

It's time for me to tie it in with my backend (Flask and Python programs), and I think I need to pile everything to get bundle.css and bundle.js files. However, I cannot seem to find the mand to pile everything and generate these files. I assume they would be some npm mand. Thanks a lot in advance!

I've been creating a basic website and have been working on the front end. And I preview it using the mand npm start.

In my directory, I have these files

app.js
app.scss
index.html
package-lock.json
package.json
webpack.config.js

It's time for me to tie it in with my backend (Flask and Python programs), and I think I need to pile everything to get bundle.css and bundle.js files. However, I cannot seem to find the mand to pile everything and generate these files. I assume they would be some npm mand. Thanks a lot in advance!

Share Improve this question asked Jul 18, 2018 at 2:05 Paulo CostaPaulo Costa 1,6553 gold badges15 silver badges17 bronze badges
Add a ment  | 

1 Answer 1

Reset to default 5

You should try these bundler libraries. Read the documentation and follow the required format.

  1. Webpack: https://webpack.js/
  2. ParcelJS: https://parceljs/
Post a comment

comment list (0)

  1. No comments so far