Skip to content

Commit

Permalink
Merge pull request #1038 from mjschock/resolveUpdate
Browse files Browse the repository at this point in the history
Move *.min import resolution to webpack config
  • Loading branch information
mjschock committed Jul 6, 2017
2 parents 55b2985 + bdfc765 commit 5168a65
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion assets/js/theme/common/carousel.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import $ from 'jquery';
import 'slick-carousel/slick/slick.min';
import 'slick-carousel';

export default function () {
const $carousel = $('[data-slick]');
Expand Down
2 changes: 1 addition & 1 deletion assets/js/theme/global.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import $ from 'jquery';
import './common/select-option-plugin';
import 'html5-history-api/history.min';
import 'html5-history-api';
import PageManager from './page-manager';
import quickSearch from './global/quick-search';
import currencySelector from './global/currency-selector';
Expand Down
2 changes: 2 additions & 0 deletions webpack.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,10 @@ module.exports = {
],
resolve: {
alias: {
'html5-history-api': path.resolve(__dirname, 'node_modules/html5-history-api/history.min.js'),
jquery: path.resolve(__dirname, 'node_modules/jquery/dist/jquery.min.js'),
jstree: path.resolve(__dirname, 'node_modules/jstree/dist/jstree.min.js'),
'slick-carousel': path.resolve(__dirname, 'node_modules/slick-carousel/slick/slick.min.js'),
},
},
watch: false,
Expand Down

0 comments on commit 5168a65

Please sign in to comment.