mirror of
https://github.com/Choices-js/Choices.git
synced 2024-05-19 14:06:33 +02:00
set window target for minified build (#685)
* set `globalObject` option * commit builded assets * set window target for minified build
This commit is contained in:
parent
472e0dff39
commit
bef6743c3b
|
@ -2,7 +2,7 @@
|
|||
"name": "choices.js",
|
||||
"version": "7.1.5",
|
||||
"description": "A vanilla JS customisable text input/select box plugin",
|
||||
"main": "./public/assets/scripts/choices.min.js",
|
||||
"main": "./public/assets/scripts/choices.js",
|
||||
"types": "./types/index.d.ts",
|
||||
"scripts": {
|
||||
"start": "run-p js:watch css:watch",
|
||||
|
|
File diff suppressed because one or more lines are too long
46
public/assets/scripts/choices.min.js
vendored
46
public/assets/scripts/choices.min.js
vendored
File diff suppressed because one or more lines are too long
|
@ -10,8 +10,9 @@ module.exports = {
|
|||
entry: ['./src/scripts/choices'],
|
||||
output: {
|
||||
library: 'Choices',
|
||||
libraryTarget: 'umd',
|
||||
libraryTarget: 'window',
|
||||
libraryExport: 'default',
|
||||
globalObject: 'window',
|
||||
},
|
||||
module: {
|
||||
rules: [
|
||||
|
|
|
@ -30,7 +30,7 @@ module.exports = [
|
|||
deepMerge(
|
||||
prodConfig,
|
||||
{
|
||||
output: { filename: 'choices.js' },
|
||||
output: { filename: 'choices.js', libraryTarget: 'umd' },
|
||||
optimization: { minimize: false },
|
||||
},
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue