Skip to content

Commit

Permalink
Remove jquery from the builder
Browse files Browse the repository at this point in the history
  • Loading branch information
artf committed Jun 1, 2017
1 parent e81aa97 commit 2e8e288
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 22 deletions.
28 changes: 11 additions & 17 deletions dist/grapes.min.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
<link rel="stylesheet" href="node_modules/codemirror/theme/hopscotch.css">

<link rel="stylesheet" href="dist/css/grapes.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script src="dist/grapes.min.js"></script>

</head>
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "grapesjs",
"description": "Free and Open Source Web Builder Framework",
"version": "0.5.43",
"version": "0.5.46",
"author": "Artur Arseniev",
"license": "BSD-3-Clause",
"homepage": "http://grapesjs.com",
Expand Down
3 changes: 1 addition & 2 deletions src/index.js
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
const grapesjs = require('./grapesjs');
module.exports = grapesjs;
module.exports = require('./grapesjs');
1 change: 0 additions & 1 deletion src/wrappers/jquery.js

This file was deleted.

2 changes: 1 addition & 1 deletion webpack.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
//webpack --display-reasons
//Remove jquery https://github.com/webpack/webpack/issues/1275
//Migrateing https://webpack.js.org/guides/migrating/
var webpack = require('webpack');
var pkg = require('./package.json');
var env = process.env.WEBPACK_ENV;
Expand All @@ -27,6 +26,7 @@ module.exports = {
library: 'grapesjs',
libraryTarget: 'umd',
},
externals: {jquery: 'jQuery'},
plugins: plugins,
module: {
loaders: [{
Expand Down

0 comments on commit 2e8e288

Please sign in to comment.