latepoint
Last commit date
blocks
1 year ago
languages
1 year ago
lib
1 year ago
public
1 year ago
trunk
1 year ago
.gitignore
1 year ago
_webpack.config.js
1 year ago
api-cheat-sheet.txt
1 year ago
config.codekit3
1 year ago
latepoint.php
1 year ago
package-lock.json
1 year ago
package.json
1 year ago
prepros.config
1 year ago
readme.txt
1 year ago
_webpack.config.js
28 lines
| 1 | const path = require('path'); |
| 2 | var webpack = require('webpack'); |
| 3 | |
| 4 | module.exports = { |
| 5 | mode: 'none', |
| 6 | entry: { |
| 7 | 'block-book-button': { |
| 8 | 'import': './blocks/src/book-button/index.js', |
| 9 | 'filename': '../blocks/build/book-button/[name].js' |
| 10 | }, |
| 11 | 'sprintf' : './node_modules/sprintf-js/dist/sprintf.min.js', |
| 12 | 'dragula' : './node_modules/dragula/dist/dragula.min.js', |
| 13 | 'Chart' : './node_modules/chart.js/dist/Chart.min.js', |
| 14 | 'moment' : './node_modules/moment/min/moment-with-locales.min.js', |
| 15 | 'jquery.inputmask' : './node_modules/inputmask/dist/jquery.inputmask.min.js', |
| 16 | 'daterangepicker' : './node_modules/daterangepicker/daterangepicker.js', |
| 17 | 'pickr' : './node_modules/pickr-widget/dist/pickr.min.js' |
| 18 | }, |
| 19 | output: { |
| 20 | filename: '[name].min.js', |
| 21 | path: path.resolve(__dirname, 'public', 'javascripts', 'vendor'), |
| 22 | }, |
| 23 | plugins: [ |
| 24 | new webpack.ProvidePlugin({ |
| 25 | moment: "moment" |
| 26 | }) |
| 27 | ] |
| 28 | }; |