Skip to content

Commit

Permalink
Add minify config for custom build, exclude syntax and formula
Browse files Browse the repository at this point in the history
  • Loading branch information
web-padawan committed Oct 11, 2018
1 parent 14f924c commit 3c9b972
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
3 changes: 2 additions & 1 deletion _develop/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,8 @@ module.exports = function(env) {

if (env && env.minimize) {
config.entry = {
'quill.min.js': './quill.js'
'quill.min.js': './quill.js',
'vaadin-quill.min.js': './vaadin-quill.js'
};
config.plugins.push(
new webpack.optimize.UglifyJsPlugin({
Expand Down
8 changes: 4 additions & 4 deletions vaadin-quill.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ import Video from './formats/video';

import CodeBlock, { Code as InlineCode } from './formats/code';

import Formula from './modules/formula';
import Syntax from './modules/syntax';
// import Formula from './modules/formula';
// import Syntax from './modules/syntax';
import Toolbar from './modules/toolbar';

// import Icons from './ui/icons';
Expand Down Expand Up @@ -86,8 +86,8 @@ Quill.register({

'formats/list/item': ListItem,

'modules/formula': Formula,
'modules/syntax': Syntax,
// 'modules/formula': Formula,
// 'modules/syntax': Syntax,
'modules/toolbar': Toolbar

// 'themes/bubble': BubbleTheme,
Expand Down

0 comments on commit 3c9b972

Please sign in to comment.