1 | module.exports = {
|
2 | entry: './js/entries/all.js',
|
3 | output: {
|
4 | path: './_build/assets/js/',
|
5 | filename: 'foundation.js'
|
6 | },
|
7 | externals: {
|
8 | jquery: 'jQuery'
|
9 | },
|
10 | module: {
|
11 | loaders: [
|
12 | ],
|
13 | rules: [
|
14 | // JS LOADER
|
15 | // Reference: https://github.com/babel/babel-loader
|
16 | // Transpile .js files using babel-loader
|
17 | // Compiles ES6 and ES7 into ES5 code
|
18 | {
|
19 | test: /\.js$/,
|
20 | use: [
|
21 | {
|
22 | loader: 'babel-loader',
|
23 | }
|
24 | ],
|
25 | }
|
26 | ]
|
27 | }
|
28 | };
|