Cache-bust olm.wasm
In the same way as we now do images/fonts
This commit is contained in:
parent
68fd1f0fad
commit
03de7f9901
3 changed files with 16 additions and 8 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue