Skip to content

Commit

Permalink
created legacy js
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Kunitzsch committed Jun 14, 2019
1 parent 30b09c6 commit ec4ccac
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 4 deletions.
10 changes: 9 additions & 1 deletion .gitignore
@@ -1,7 +1,15 @@
/composer.lock
/vendor
/node_modules
.idea
Thumbs.db
.DS_Store
.sass-cache
/build
/build
composer.lock
composer.json~
composer.phar
yarn.lock
yarn-error.log
src/Resources/public/js/entrypoints.json
src/Resources/public/js/manifest.json
3 changes: 3 additions & 0 deletions src/Resources/npm-package/README.md
@@ -0,0 +1,3 @@
# Contao Filter Bundle Assets

This package contains the frontend assets of the composer bundle [heimrichhannot/contao-filter-bundle](https://github.com/heimrichhannot/contao-filter-bundle).
1 change: 1 addition & 0 deletions src/Resources/public/js/contao-filter-bundle.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 2 additions & 3 deletions webpack.config.js
Expand Up @@ -2,17 +2,16 @@ var Encore = require('@symfony/webpack-encore');

Encore
.setOutputPath('src/Resources/public/js/')
.addEntry('contao-no-ui-slider-bundle', './src/Resources/assets/js/contao-no-ui-slider-bundle.js')
.addEntry('contao-filter-bundle', './src/Resources/assets/js/contao-filter-bundle.js')
.setPublicPath('/public/js/')
.disableSingleRuntimeChunk()
.addExternals({
'nouislider': 'noUiSlider',
'@hundh/contao-utils-bundle': 'utilsBundle'
})
.configureBabel(function (babelConfig) {
}, {
// include to babel processing
includeNodeModules: ['@hundh/contao-no-ui-slider-bundle']
includeNodeModules: ['@hundh/contao-filter-bundle']
})
.enableSourceMaps(!Encore.isProduction())
;
Expand Down

0 comments on commit ec4ccac

Please sign in to comment.