Cache-bust olm.wasm

In the same way as we now do images/fonts
This commit is contained in:
David Baker 2019-01-28 14:09:28 +00:00
parent 68fd1f0fad
commit 03de7f9901
3 changed files with 16 additions and 8 deletions

View file

@ -25,6 +25,15 @@ module.exports = {
rules: [
{ enforce: 'pre', test: /\.js$/, use: "source-map-loader", exclude: /node_modules/, },
{ test: /\.js$/, use: "babel-loader", include: path.resolve(__dirname, 'src') },
{
test: /\.wasm$/,
loader: "file-loader",
type: "javascript/auto", // https://github.com/webpack/webpack/issues/6725
options: {
name: '[name].[hash:7].[ext]',
outputPath: '.',
},
},
{
test: /\.scss$/,
// 1. postcss-loader turns the SCSS into normal CSS.