Create dist/es folder for output bundle

This commit is contained in:
josdejong 2020-05-06 20:22:49 +02:00
parent f33b715391
commit 5ac813f091
4 changed files with 4 additions and 4 deletions

2
.gitignore vendored
View File

@ -1,5 +1,5 @@
/node_modules/
/public/build/
/public/dist/
.DS_Store
.idea

View File

@ -20,7 +20,7 @@
<div id="jsoneditor"></div>
<script type="module">
import jsoneditor from '../build/jsoneditor.module.js'
import jsoneditor from '../dist/es/jsoneditor.js'
// create the editor
const editor = jsoneditor({

View File

@ -45,7 +45,7 @@
</p>
<script type="module">
import jsoneditor from './build/jsoneditor.module.js'
import jsoneditor from './dist/es/jsoneditor.js'
const json = {
'array': [1, 2, 3, {

View File

@ -13,7 +13,7 @@ export default {
sourcemap: true,
format: 'esm', // esm, umd, cjs, iife
name: 'JSONEditor',
file: 'public/build/jsoneditor.module.js'
file: 'public/dist/es/jsoneditor.js'
},
plugins: [
svelte({