-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwebpack.config.js
40 lines (36 loc) · 1.21 KB
/
webpack.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
const path = require('path')
module.exports = {
entry: {
base: './static/javascript/base.js',
home: './static/javascript/home/home.js',
fliers: './static/javascript/media/fliers.js',
photos: './static/javascript/media/photos.js',
videos: './static/javascript/media/videos.js',
list_genres: './static/javascript/music/list_genres.js',
view_genre: './static/javascript/music/view_genre.js',
music_page: './static/javascript/music/music_page.js',
view_artist: './static/javascript/music/view_artist.js',
past_shows: './static/javascript/shows/past_shows.js',
view_show: './static/javascript/shows/view_show.js',
form_to_bootstrap: './static/javascript/util/form_to_bootstrap.js'
},
output: {
path: path.join(__dirname,'static', 'dist'),
publicPath: '/',
filename: '[name].js',
library: 'scripts'
},
target: 'web',
module: {
rules: [
{
// Transpiles ES6-8 into ES5
test: /\.js$/,
exclude: /node_modules/,
use: {
loader: "babel-loader"
}
}
]
}
}