]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/blob - webpack.config.js
fix: momentum scrolling for a few components
[thirdparty/foundation/foundation-sites.git] / webpack.config.js
1 module.exports = {
2 entry: './js/entries/foundation.js',
3 output: {
4 path: './_build/assets/js/',
5 filename: 'foundation.js',
6 libraryTarget: 'umd'
7 },
8 externals: {
9 jquery: 'jQuery'
10 },
11 module: {
12 loaders: [
13 ],
14 rules: [
15 // JS LOADER
16 // Reference: https://github.com/babel/babel-loader
17 // Transpile .js files using babel-loader
18 // Compiles ES6 and ES7 into ES5 code
19 {
20 test: /\.js$/,
21 use: [
22 {
23 loader: 'babel-loader',
24 }
25 ],
26 }
27 ]
28 }
29 };