最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

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

programmeradmin5浏览0评论

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/
发布评论

评论列表(0)

  1. 暂无评论