mirror of
https://github.com/Choices-js/Choices.git
synced 2024-04-25 02:40:28 +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",
|
"name": "choices.js",
|
||||||
"version": "7.1.5",
|
"version": "7.1.5",
|
||||||
"description": "A vanilla JS customisable text input/select box plugin",
|
"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",
|
"types": "./types/index.d.ts",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"start": "run-p js:watch css:watch",
|
"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'],
|
entry: ['./src/scripts/choices'],
|
||||||
output: {
|
output: {
|
||||||
library: 'Choices',
|
library: 'Choices',
|
||||||
libraryTarget: 'umd',
|
libraryTarget: 'window',
|
||||||
libraryExport: 'default',
|
libraryExport: 'default',
|
||||||
|
globalObject: 'window',
|
||||||
},
|
},
|
||||||
module: {
|
module: {
|
||||||
rules: [
|
rules: [
|
||||||
|
|
|
@ -30,7 +30,7 @@ module.exports = [
|
||||||
deepMerge(
|
deepMerge(
|
||||||
prodConfig,
|
prodConfig,
|
||||||
{
|
{
|
||||||
output: { filename: 'choices.js' },
|
output: { filename: 'choices.js', libraryTarget: 'umd' },
|
||||||
optimization: { minimize: false },
|
optimization: { minimize: false },
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue