-
Notifications
You must be signed in to change notification settings - Fork 79
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(webpack): modify all projects webpacks.configs to reduce bundle…
… size
- Loading branch information
1 parent
a7300a3
commit f10e6ef
Showing
56 changed files
with
414 additions
and
134 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1 @@ | ||
export { routes } from './routes' | ||
export { locales } from './locales' | ||
export { plugins } from './plugins' | ||
export { webchat } from './webchat' | ||
export { webviews } from './webviews' | ||
export const config = { defaultDelay: 0, defaultTyping: 0 } |
19 changes: 19 additions & 0 deletions
19
packages/botonic-cli/templates/blank/webpack-entries/dev-entry.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import { DevApp } from '@botonic/react' | ||
|
||
import { routes } from '../src/routes' | ||
|
||
import { locales } from '../src/locales' | ||
|
||
import { plugins } from '../src/plugins' | ||
|
||
import { webchat } from '../src/webchat' | ||
|
||
import { config } from '../src' | ||
|
||
export const app = new DevApp({ | ||
routes, | ||
locales, | ||
plugins, | ||
...webchat, | ||
...config, | ||
}) |
11 changes: 11 additions & 0 deletions
11
packages/botonic-cli/templates/blank/webpack-entries/node-entry.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import { NodeApp } from '@botonic/react' | ||
|
||
import { routes } from '../src/routes' | ||
|
||
import { locales } from '../src/locales' | ||
|
||
import { plugins } from '../src/plugins' | ||
|
||
import { config } from '../src' | ||
|
||
export const app = new NodeApp({ routes, locales, plugins, ...config }) |
5 changes: 5 additions & 0 deletions
5
packages/botonic-cli/templates/blank/webpack-entries/webchat-entry.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import { WebchatApp } from '@botonic/react' | ||
|
||
import { webchat } from '../src/webchat' | ||
|
||
export const app = new WebchatApp(webchat) |
7 changes: 7 additions & 0 deletions
7
packages/botonic-cli/templates/blank/webpack-entries/webviews-entry.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import { WebviewApp } from '@botonic/react' | ||
|
||
import { webviews } from '../src/webviews' | ||
|
||
import { locales } from '../src/locales' | ||
|
||
export const app = new WebviewApp({ webviews, locales }) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1 @@ | ||
export { routes } from './routes' | ||
export { locales } from './locales' | ||
export { plugins } from './plugins' | ||
export { webchat } from './webchat' | ||
export { webviews } from './webviews' | ||
export const config = { defaultDelay: 0, defaultTyping: 0 } |
19 changes: 19 additions & 0 deletions
19
packages/botonic-cli/templates/childs/webpack-entries/dev-entry.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import { DevApp } from '@botonic/react' | ||
|
||
import { routes } from '../src/routes' | ||
|
||
import { locales } from '../src/locales' | ||
|
||
import { plugins } from '../src/plugins' | ||
|
||
import { webchat } from '../src/webchat' | ||
|
||
import { config } from '../src' | ||
|
||
export const app = new DevApp({ | ||
routes, | ||
locales, | ||
plugins, | ||
...webchat, | ||
...config, | ||
}) |
11 changes: 11 additions & 0 deletions
11
packages/botonic-cli/templates/childs/webpack-entries/node-entry.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import { NodeApp } from '@botonic/react' | ||
|
||
import { routes } from '../src/routes' | ||
|
||
import { locales } from '../src/locales' | ||
|
||
import { plugins } from '../src/plugins' | ||
|
||
import { config } from '../src' | ||
|
||
export const app = new NodeApp({ routes, locales, plugins, ...config }) |
5 changes: 5 additions & 0 deletions
5
packages/botonic-cli/templates/childs/webpack-entries/webchat-entry.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import { WebchatApp } from '@botonic/react' | ||
|
||
import { webchat } from '../src/webchat' | ||
|
||
export const app = new WebchatApp(webchat) |
7 changes: 7 additions & 0 deletions
7
packages/botonic-cli/templates/childs/webpack-entries/webviews-entry.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import { WebviewApp } from '@botonic/react' | ||
|
||
import { webviews } from '../src/webviews' | ||
|
||
import { locales } from '../src/locales' | ||
|
||
export const app = new WebviewApp({ webviews, locales }) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1 @@ | ||
export { routes } from './routes' | ||
export { locales } from './locales' | ||
export { plugins } from './plugins' | ||
export { webchat } from './webchat' | ||
export { webviews } from './webviews' | ||
export const config = { defaultDelay: 0, defaultTyping: 0 } |
19 changes: 19 additions & 0 deletions
19
packages/botonic-cli/templates/custom-webchat/webpack-entries/dev-entry.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import { DevApp } from '@botonic/react' | ||
|
||
import { routes } from '../src/routes' | ||
|
||
import { locales } from '../src/locales' | ||
|
||
import { plugins } from '../src/plugins' | ||
|
||
import { webchat } from '../src/webchat' | ||
|
||
import { config } from '../src' | ||
|
||
export const app = new DevApp({ | ||
routes, | ||
locales, | ||
plugins, | ||
...webchat, | ||
...config, | ||
}) |
11 changes: 11 additions & 0 deletions
11
packages/botonic-cli/templates/custom-webchat/webpack-entries/node-entry.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import { NodeApp } from '@botonic/react' | ||
|
||
import { routes } from '../src/routes' | ||
|
||
import { locales } from '../src/locales' | ||
|
||
import { plugins } from '../src/plugins' | ||
|
||
import { config } from '../src' | ||
|
||
export const app = new NodeApp({ routes, locales, plugins, ...config }) |
5 changes: 5 additions & 0 deletions
5
packages/botonic-cli/templates/custom-webchat/webpack-entries/webchat-entry.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import { WebchatApp } from '@botonic/react' | ||
|
||
import { webchat } from '../src/webchat' | ||
|
||
export const app = new WebchatApp(webchat) |
7 changes: 7 additions & 0 deletions
7
packages/botonic-cli/templates/custom-webchat/webpack-entries/webviews-entry.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import { WebviewApp } from '@botonic/react' | ||
|
||
import { webviews } from '../src/webviews' | ||
|
||
import { locales } from '../src/locales' | ||
|
||
export const app = new WebviewApp({ webviews, locales }) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1 @@ | ||
export { routes } from './routes' | ||
export { locales } from './locales' | ||
export { plugins } from './plugins' | ||
export { webchat } from './webchat' | ||
export { webviews } from './webviews' | ||
export const config = { defaultDelay: 0, defaultTyping: 0 } |
19 changes: 19 additions & 0 deletions
19
packages/botonic-cli/templates/dynamic-carousel/webpack-entries/dev-entry.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import { DevApp } from '@botonic/react' | ||
|
||
import { routes } from '../src/routes' | ||
|
||
import { locales } from '../src/locales' | ||
|
||
import { plugins } from '../src/plugins' | ||
|
||
import { webchat } from '../src/webchat' | ||
|
||
import { config } from '../src' | ||
|
||
export const app = new DevApp({ | ||
routes, | ||
locales, | ||
plugins, | ||
...webchat, | ||
...config, | ||
}) |
11 changes: 11 additions & 0 deletions
11
packages/botonic-cli/templates/dynamic-carousel/webpack-entries/node-entry.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import { NodeApp } from '@botonic/react' | ||
|
||
import { routes } from '../src/routes' | ||
|
||
import { locales } from '../src/locales' | ||
|
||
import { plugins } from '../src/plugins' | ||
|
||
import { config } from '../src' | ||
|
||
export const app = new NodeApp({ routes, locales, plugins, ...config }) |
5 changes: 5 additions & 0 deletions
5
packages/botonic-cli/templates/dynamic-carousel/webpack-entries/webchat-entry.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import { WebchatApp } from '@botonic/react' | ||
|
||
import { webchat } from '../src/webchat' | ||
|
||
export const app = new WebchatApp(webchat) |
7 changes: 7 additions & 0 deletions
7
packages/botonic-cli/templates/dynamic-carousel/webpack-entries/webviews-entry.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import { WebviewApp } from '@botonic/react' | ||
|
||
import { webviews } from '../src/webviews' | ||
|
||
import { locales } from '../src/locales' | ||
|
||
export const app = new WebviewApp({ webviews, locales }) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1 @@ | ||
export { routes } from './routes' | ||
export { locales } from './locales' | ||
export { plugins } from './plugins' | ||
export { webchat } from './webchat' | ||
export { webviews } from './webviews' | ||
export const config = { defaultDelay: 0, defaultTyping: 0 } |
Oops, something went wrong.