Answered by
jcenlo
Oct 21, 2022
Replies: 2 comments
|
i am folowing this documentation https://webpack.js.org/guides/entry-advanced/ but is not working |
0 replies
|
I found a solution
i try to spread with ...output. but return a error but adding this lines WORKS , i really don`t understand why, i am starting code so could be something silly ... so resolved |
0 replies
Answer selected by
jcenlo
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment



I found a solution
entry: { index: entry, vars: path.resolve(__dirname, './src/vars.js'), }, output: { // ...output, path: path.resolve(path.join(__dirname, "./dist")), filename: '[name].js', chunkFilename: '[name].js', library: 'bootstrap-xditor', // add this line libraryTarget: 'umd', // add this line globalObject: "typeof globalThis !== 'undefined' ? globalThis : (typeof window !== 'undefined' ? window : this)" // add this line },i try to spread with ...output. but return a error but adding this lines WORKS , i really don`t understand why, i am starting code so could be something silly ... so resolved