Is it possible to write components directly in html? #1
Comments
sorry, my english is not very good try, new HtmlWebpackPlugin({
chunks: ['vendor', entry],
filename: entry + '.html',
// - template: 'template/index.html',
template: 'src/modules/'+entry+'/index.html',
inject: true
}) build/webpack.prod.conf.js new HtmlWebpackPlugin({
chunks: ['vendor', 'common', entry],
filename: entry + '.html',
// - template: 'template/index.html',
template: 'src/modules/'+entry+'/index.html',
inject: true,
minify: {
removeComments: true,
collapseWhitespace: true,
removeAttributeQuotes: true
}
}) |
@lincenying It works thanks. But the structure should be very simple. Now not possible make structure like Can you help with that? |
I will very appreciated if you take a look at my config. What I need to change to bundle vendor file like you boilerplate do? Right now my config include vendor to every chunk so size of the files is big. |
This will not be able to use build/entris.js var fs = require('fs')
var path = require('path')
var entryPath = path.resolve(__dirname, '../src/modules')
var entris = {
index: path.join(entryPath,'index'),
module1: path.join(entryPath,'module1'),
module1_module11: path.join(entryPath,'module1/module11'),
module2: path.join(entryPath,'module2'),
module2_module21: path.join(entryPath,'module2/module21')
}
module.exports = entris
This is not a good idea, but it seems that there is no other way Not a public dependency, do not put |
What you mean? My config. |
Hello! Thanks for cool and helpful boilerplate.
I got a question, is it possible to make structure for pages like that –
modules/
--page1/
----index.js
----index.html
--page2/
----index.js
----index.html
So instead of writing components in index.vue I want to define it in index.js and write component in html like
Because I dont want put all my html code to js file, but want to use a few vue components on the page.
Is it possible? Thanks!
I got this webpack.config for multiple page app too, it works but bundle's are so big it includes everything and css duplicates a lot of times. https://gist.github.com/lavezzi1/f026edef2cd819fb87c692a6bb2f4459
Help please!
The text was updated successfully, but these errors were encountered: