L
L
lilwings2020-04-15 22:30:06
webpack
lilwings, 2020-04-15 22:30:06

Setting up webpack for MPA?

Hello!

Is it possible to configure webpack to work like this:

1) Separately collect scss files from the index.scss entry point
2) Separately collect ts files from the index.ts entry point
3) Separately go through all html files from the src/html folder and add them to / output/. So that inside html files can import other html files into themselves. That is, in src/html/ there are pages that import the necessary fragments into themselves. (Use include in html)

As I understand it, webpack is for SPA applications and it is not suitable for this.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrey Suha, 2020-04-15
@lilwings

1. Css is imported into js/ts
2. Yes
3. Yes

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question