Skip to content

Commit

Permalink
New version 1.0.15
Browse files Browse the repository at this point in the history
  • Loading branch information
xdan committed May 10, 2024
1 parent 1e9f814 commit 49599ef
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 12 deletions.
6 changes: 3 additions & 3 deletions examples/use-esm-build/src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,17 @@
{
"imports": {
"autobind-decorator": "https://cdn.jsdelivr.net/npm/[email protected]/+esm",
"jodit": "/jodit/pro/docs/getting-started/jodit/esm/index.js"
"jodit": "/jodit/pro/docs/examples/jodit/esm/index.js"
}
}
</script>
<link rel="stylesheet" href="/jodit/pro/docs/getting-started/jodit/es2021.en/jodit.fat.min.css">
<link rel="stylesheet" href="/jodit/pro/docs/examples/jodit/es2021.en/jodit.fat.min.css">
<script type="module">
import {Jodit} from 'jodit';
// By default, the ESM build does not include all plugins.
// Whole list of plugins is available in the sources https://github.com/xdan/jodit/tree/main/src/plugins
// Base plugins are included in the ESM build https://github.com/xdan/jodit/blob/main/tools/utils/resolve-alias-imports.ts#L64
import '/jodit/pro/docs/getting-started/jodit/esm/plugins/ai-assistant/ai-assistant.js'
import '/jodit/pro/docs/examples/jodit/esm/plugins/ai-assistant/ai-assistant.js'
const editor = new Jodit('#root');
</script>
</body>
Expand Down
20 changes: 17 additions & 3 deletions examples/use-esm-build/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,23 @@ const config = {
devServer: {
open: true,
allowedHosts: "all",
static: {
directory: path.resolve(__dirname, "./"),
},
static: [
{
directory: path.resolve(__dirname, './')
},
{
directory: path.resolve(__dirname, './node_modules/jodit/esm/'),
publicPath: '/jodit/pro/docs/examples/jodit/esm/'
},
{
directory: path.resolve(__dirname, './node_modules/jodit/es2021.en/'),
publicPath: '/jodit/pro/docs/examples/jodit/es2021.en/'
},
{
directory: path.resolve(__dirname, './node_modules/jodit-pro/esm/'),
publicPath: '/jodit/pro/docs/examples/jodit-pro/esm/'
}
],
client: {
progress: true,
overlay: true,
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "jodit-examples",
"version": "1.0.14",
"version": "1.0.15",
"description": "Jodit Examples",
"main": "index.js",
"scripts": {
Expand Down
6 changes: 3 additions & 3 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,15 +48,15 @@ const config = {
},
{
directory: path.resolve(__dirname, './node_modules/jodit/esm/'),
publicPath: '/jodit/pro/docs/getting-started/jodit/esm/'
publicPath: '/jodit/pro/docs/examples/jodit/esm/'
},
{
directory: path.resolve(__dirname, './node_modules/jodit/es2021.en/'),
publicPath: '/jodit/pro/docs/getting-started/jodit/es2021.en/'
publicPath: '/jodit/pro/docs/examples/jodit/es2021.en/'
},
{
directory: path.resolve(__dirname, './node_modules/jodit-pro/esm/'),
publicPath: '/jodit/pro/docs/getting-started/jodit-pro/esm/'
publicPath: '/jodit/pro/docs/examples/jodit-pro/esm/'
}
],
client: {
Expand Down

0 comments on commit 49599ef

Please sign in to comment.