feat: sync all remaining python source board configurations
This commit is contained in:
30
mixly/boards/default_src/python_skulpt/webpack.common.js
Normal file
30
mixly/boards/default_src/python_skulpt/webpack.common.js
Normal file
@@ -0,0 +1,30 @@
|
||||
const path = require('path');
|
||||
const common = require('../../../webpack.common');
|
||||
const { merge } = require('webpack-merge');
|
||||
|
||||
module.exports = merge(common, {
|
||||
resolve: {
|
||||
alias: {
|
||||
'@mixly/python': path.resolve(__dirname, '../python'),
|
||||
'@mixly/python-mixpy': path.resolve(__dirname, '../python_mixpy')
|
||||
}
|
||||
},
|
||||
externals: {
|
||||
'sk': 'Sk'
|
||||
},
|
||||
module: {
|
||||
rules: [
|
||||
{
|
||||
test: /\.py$/,
|
||||
type: 'asset/source',
|
||||
}, {
|
||||
test: /\.js$/,
|
||||
resourceQuery: /url/,
|
||||
type: 'asset/resource',
|
||||
generator: {
|
||||
filename: "[name]_[contenthash:8][ext]",
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
});
|
||||
Reference in New Issue
Block a user