mirror of
https://github.com/scratchfoundation/scratch-storage.git
synced 2025-06-01 16:04:48 -04:00
chore: use the preferred webpack config format
This commit is contained in:
parent
78b2c66140
commit
36d7d274f8
1 changed files with 7 additions and 5 deletions
|
@ -27,10 +27,11 @@ if (!process.env.CI) {
|
|||
const webConfig = baseConfig.clone()
|
||||
.merge({
|
||||
output: {
|
||||
library: 'ScratchStorage',
|
||||
libraryTarget: 'umd',
|
||||
library: {
|
||||
name: 'ScratchStorage',
|
||||
type: 'umd2'
|
||||
},
|
||||
path: path.resolve(__dirname, 'dist', 'web'),
|
||||
filename: '[name].js',
|
||||
clean: false
|
||||
}
|
||||
});
|
||||
|
@ -62,10 +63,11 @@ const nodeConfig = baseConfig.clone()
|
|||
'scratch-storage': path.join(__dirname, './src/index.ts')
|
||||
},
|
||||
output: {
|
||||
libraryTarget: 'commonjs2',
|
||||
library: {
|
||||
type: 'commonjs2'
|
||||
},
|
||||
chunkFormat: 'commonjs',
|
||||
path: path.resolve(__dirname, 'dist', 'node'),
|
||||
filename: '[name].js',
|
||||
clean: false
|
||||
}
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue