forked from KnicknackCadillac/Knicknack-Cadillac
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwebpack.config.js
More file actions
29 lines (28 loc) · 955 Bytes
/
webpack.config.js
File metadata and controls
29 lines (28 loc) · 955 Bytes
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
module.exports = {
entry: './app/components/App.jsx',
output: {
// path: 'dist', // `path` is a path to the directory where your bundle will be written.
/**
`publicPath` is optional. It allows you to set a separate path that will
be used by any lazy-loading in your Webpack scripts to load more chunks
from the server. Basically, `path` sets where in your project's file structure
your bundle will be written, while `publicPath` tells your Webpack modules
where your bundle can be requested from the server. In this repo, `publicPath`
tells the webpack-dev-server that it's ok to serve the files in the dist folder.
**/
// publicPath: 'dist',
filename: './public/bundle.js',
},
module: {
loaders: [
{
test: /\.jsx?$/,
exclude: /(node_modules|bower_components)/,
loader: 'babel',
query: {
presets: ['react', 'es2015'],
}
},
]
}
};