Skip to content

Commit

Permalink
Removed jquery from build.
Browse files Browse the repository at this point in the history
  • Loading branch information
florinpopescu committed Mar 24, 2017
1 parent 2fc8cb4 commit d061484
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 2 deletions.
4 changes: 4 additions & 0 deletions build/webpack.dev.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ module.exports = merge(baseWebpackConfig, {
filename: 'index.html',
template: 'index.html',
inject: true
}),
new webpack.ProvidePlugin({
$: "jquery",
jQuery: "jquery"
})
]
})
4 changes: 4 additions & 0 deletions build/webpack.prod.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ webpackConfig.plugins = (webpackConfig.plugins || []).concat([
compress: { warnings: false }
}),
new webpack.optimize.OccurenceOrderPlugin(),
new webpack.ProvidePlugin({
$: "jquery",
jQuery: "jquery"
})
])

module.exports = webpackConfig
1 change: 1 addition & 0 deletions src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

import Vue from 'vue'
import App from './examples/App'

// supports both of Vue 1.0 and Vue 2.0
require('froala-editor/js/froala_editor.pkgd.min');

Expand Down
2 changes: 0 additions & 2 deletions src/vue-froala.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
var $ = require('jquery');


export default (Vue, Options = {}) => {

Expand Down

0 comments on commit d061484

Please sign in to comment.