When I'm editing src/app.html in Aurelia's skeleton-navigation/skeleton-typescript-webpack, webpack fails with the following error.
WARNING in ./src/app.html~
Module parse failed: /Users/foo/skeleton-test/src/app.html~ Unexpected token (1:0)
You may need an appropriate loader to handle this file type.
How do I exclude files such as app.html~ and #app.html generated by Emacs as backups?
I added plugins: entry in webpack.config.ts, but it did not work.
...
import * as webpack from 'webpack';
...
let config = generateConfig(
  {
    entry: {
      'app': ['./src/main' /* this is filled by the aurelia-webpack-plugin */],
      'aurelia-bootstrap': coreBundles.bootstrap,
      'aurelia': coreBundles.aurelia.filter(pkg => coreBundles.bootstrap.indexOf(pkg) === -1)
    },
    output: {
      path: outDir,
    },
    plugins: [
       new webpack.LoaderOptionsPlugin({
         options: {
            exclude: [ /.*~$/, /.*#.*/ ],
         }
       })
     ]
  },
 
     
    