mirror of
https://github.com/bdnugget/php-wasm.git
synced 2026-11-07 09:07:28 +00:00
32 lines
608 B
JavaScript
32 lines
608 B
JavaScript
module.exports = {
|
|
files: {
|
|
stylesheets: {joinTo: 'app.css'}
|
|
, templates: {joinTo: 'include.js'}
|
|
, javascripts: {
|
|
entryPoints: {
|
|
'app/DrupalWorker.js': 'DrupalWorker.js'
|
|
, 'app/initialize.js': 'app.js'
|
|
}
|
|
}
|
|
}
|
|
, plugins: {
|
|
babel: {
|
|
presets: ['@babel/preset-env']
|
|
, plugins: ['@babel/plugin-proposal-class-properties']
|
|
}
|
|
, raw: {
|
|
pattern: /\.(php)$/,
|
|
wrapper: content => `module.exports = ${JSON.stringify(content)}`
|
|
}
|
|
}
|
|
, modules: {
|
|
autoRequire: {
|
|
'DrupalWorker.js': ['DrupalWorker']
|
|
}
|
|
}
|
|
, watcher: {
|
|
awaitWriteFinish: true,
|
|
usePolling: true
|
|
}
|
|
};
|