mirror of
https://github.com/xibyte/jsketcher
synced 2026-02-13 10:54:19 +01:00
occ webpack config
This commit is contained in:
parent
cb108cc2d4
commit
a2a9734acd
1 changed files with 11 additions and 12 deletions
|
|
@ -34,17 +34,7 @@ module.exports = {
|
|||
},
|
||||
devServer: {
|
||||
hot: false,
|
||||
inline: false,
|
||||
before: function (app) {
|
||||
app.get('*.wasm', function (req, res) {
|
||||
res.sendFile(req.url, {
|
||||
root: path.join(__dirname, 'web'),
|
||||
headers: {
|
||||
'Content-Type': 'application/wasm'
|
||||
}
|
||||
});
|
||||
});
|
||||
},
|
||||
inline: false
|
||||
},
|
||||
module: {
|
||||
rules: [
|
||||
|
|
@ -101,9 +91,18 @@ module.exports = {
|
|||
}
|
||||
],
|
||||
},
|
||||
{
|
||||
test: /\.wasm$/,
|
||||
type: "javascript/auto",
|
||||
loader: "file-loader"
|
||||
},
|
||||
{
|
||||
test: /\.svg$/,
|
||||
loader: 'raw-loader'
|
||||
}]
|
||||
}
|
||||
],
|
||||
},
|
||||
node: {
|
||||
fs: "empty"
|
||||
}
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in a new issue