thepassle / create-lit-app

Create LitHTML apps with no build configuration. (LitHTML/Redux/Webpack/Express)
https://create-lit-app.herokuapp.com
110 stars 10 forks source link

Avoid hardcoding lit-app.js in the webpack config #13

Open jlengrand opened 5 years ago

jlengrand commented 5 years ago

Currently, the lit-app.js file is the entry point of the application in the webpack config.

const commonConfig = merge([
  {
    entry: './src/lit-app.js',
    output: {
      path: OUTPUT_PATH,
      filename: '[name].[chunkhash:8].js'
    },
   ....

I see several issues with this:

I suggest to put the main entry point to be the index.html itself, but any other idea is very welcome!