Skip to content

Commit

Permalink
Issue #51 fix: updating webpack config file exposing izitoast
Browse files Browse the repository at this point in the history
  • Loading branch information
venkateshwarans committed Jul 27, 2018
1 parent a966ebf commit c3bfc69
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions webpack.plugin.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,11 +113,20 @@ module.exports = {
'clipboard': path.resolve('./node_modules/clipboard/dist/clipboard.min.js'),
'E2EConverter': path.resolve('./plugins/org.ekstep.viewecml-1.0/editor/libs/src/converter.js'),
'qq': path.resolve('./node_modules/xmlbuilder/lib/index.js'),
'X2JS': path.resolve('./plugins/org.ekstep.assessmentbrowser-1.1/editor/libs/xml2json.js')
'X2JS': path.resolve('./plugins/org.ekstep.assessmentbrowser-1.1/editor/libs/xml2json.js'),
'iziToast': path.resolve('./app/bower_components/izitoast/dist/js/iziToast.min.js'),

}
},
module: {
rules: [{
rules: [
{
test: require.resolve('./app/bower_components/izitoast/dist/js/iziToast.min.js'),
use: [{
loader: 'expose-loader',
options: 'iziToast'
}]
},{
test: /\.(html)$/,
use: {
loader: 'html-loader',
Expand Down Expand Up @@ -173,6 +182,9 @@ module.exports = {
new MiniCssExtractPlugin({
filename: "[name].min.css",
}),
new webpack.ProvidePlugin({
iziToast: 'iziToast'
}),
new UglifyJsPlugin({
cache: false,
parallel: true,
Expand Down

0 comments on commit c3bfc69

Please sign in to comment.