more clear config
This commit is contained in:
parent
4e423816b4
commit
49bd34b7e9
|
@ -12,7 +12,6 @@ const srcDir = path.join(rootDir, pkgJson.directories.src)
|
||||||
const dstDir = path.join(rootDir, pkgJson.directories.lib)
|
const dstDir = path.join(rootDir, pkgJson.directories.lib)
|
||||||
|
|
||||||
function camelise (str) {
|
function camelise (str) {
|
||||||
console.log('camelise', str)
|
|
||||||
return str.replace(/-([a-z])/g,
|
return str.replace(/-([a-z])/g,
|
||||||
function (m, w) {
|
function (m, w) {
|
||||||
return w.toUpperCase()
|
return w.toUpperCase()
|
||||||
|
@ -48,17 +47,16 @@ module.exports = [
|
||||||
}),
|
}),
|
||||||
resolve({
|
resolve({
|
||||||
browser: true
|
browser: true
|
||||||
// ignore: ['index.browser.mod.js']
|
|
||||||
}),
|
}),
|
||||||
terser({
|
terser({
|
||||||
exclude: ['index.browser.mod.js']
|
exclude: [path.basename(pkgJson.browser)]
|
||||||
})
|
})
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{ // Node
|
{ // Node
|
||||||
input: input,
|
input: input,
|
||||||
output: {
|
output: {
|
||||||
file: path.join(dstDir, 'index.node.js'),
|
file: path.join(rootDir, pkgJson.main),
|
||||||
format: 'cjs'
|
format: 'cjs'
|
||||||
},
|
},
|
||||||
plugins: [
|
plugins: [
|
||||||
|
|
Loading…
Reference in New Issue