mirror of
https://github.com/scratchfoundation/scratch-desktop.git
synced 2025-07-16 09:02:26 -04:00
build scratch-gui from source instead of using its build output
This commit is contained in:
parent
78d75dc3cf
commit
f3b8251408
6 changed files with 27 additions and 66 deletions
|
@ -10,14 +10,26 @@ module.exports = defaultConfig =>
|
|||
{
|
||||
name: 'renderer',
|
||||
useReact: true,
|
||||
disableDefaultRulesForExtensions: ['js', 'jsx', 'css', 'svg', 'png', 'wav', 'gif', 'jpg'],
|
||||
disableDefaultRulesForExtensions: ['js', 'jsx', 'css', 'svg', 'png', 'wav', 'gif', 'jpg', 'ttf'],
|
||||
babelPaths: [
|
||||
path.resolve(__dirname, 'src', 'renderer')
|
||||
path.resolve(__dirname, 'src', 'renderer'),
|
||||
/node_modules[\\/]+scratch-[^\\/]+[\\/]+src/,
|
||||
/node_modules[\\/]+pify/,
|
||||
/node_modules[\\/]+@vernier[\\/]+godirect/
|
||||
],
|
||||
plugins: [
|
||||
new CopyWebpackPlugin([{
|
||||
from: path.resolve(__dirname, 'node_modules', 'scratch-gui', 'dist', 'static'),
|
||||
to: 'static'
|
||||
from: 'node_modules/scratch-blocks/media',
|
||||
to: 'static/blocks-media'
|
||||
}]),
|
||||
new CopyWebpackPlugin([{
|
||||
from: 'extension-worker.{js,js.map}',
|
||||
context: 'node_modules/scratch-vm/dist/web'
|
||||
}]),
|
||||
new CopyWebpackPlugin([{
|
||||
from: 'src/lib/libraries/*.json',
|
||||
to: 'static/libraries',
|
||||
flatten: true
|
||||
}])
|
||||
]
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue