How to organize work?

Friends, Hello. The question will be lengthy, but will try to compose and to properly convey his thoughts.

1. The question refers to a situation when you do the layout of the project, which later do not support.
I have a starter template for layout https://github.com/FARCER/gulp4start . The output I give to the client an html + images, neinfizirovanne styles and neinfizirovanne js. Because in the future the whole thing will be someone to pull in the CMS and maintain it yourself.
Now look periodically towards webpack, but at the end he gives a bundle, which (I think, could be wrong) it is difficult to maintain without sources.
Question - how do you correctly give the file the client and which is better? Inficirovannye all or not?

2. Now doing the project and there are more than 100 pug files. Pages 40. Compilation puh-html can be up to a minute.
Might know how to solve this problem?
If I translate Assembly to webpac, the problem will remain?

3. Expect soon to learn Vue. But I don't quite understand how to work with it in conjunction with the pug and is it possible? Or first you have to mark up the component, and then a tie Vue?

Thanks in advance for answers
June 8th 19 at 20:41
3 answers
June 8th 19 at 20:43
Question - how do you correctly give the file the client and which is better? Inficirovannye all or not?


You will not find that question strange?
Your assembler should generate three files - *.js / *.min.js / *.min.js.map
Similarly, for styles.
To give you of course need the build, and source.
June 8th 19 at 20:45
But I don't quite understand how to work with it in conjunction with the pug and is it possible? Or first you have to mark up the component, and then a tie Vue?

Component.vue
<template lang="pug">
div
 .block= {{message}}
</template>

the <script>
 export default {
 data () {
 return: {
 message: 'Hello, pug'
}
}
}
</script>

Well, in the config webpage add pug-loader
June 8th 19 at 20:47
well, let beneficium, you sorcy give
pag needs faster compilling such a small number of pages, look for a problem in configuring
Good afternoon. Can you provide a link to your build or look of mine to be a problem? - karli.Padbe commented on June 8th 19 at 20:50

Find more questions by tags LayoutOrganization of the work