Created
April 27, 2016 08:08
-
-
Save jonnung/777d69747a17864fec72c28d9afda7b0 to your computer and use it in GitHub Desktop.
[DalkStudy] webpack.config.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = { | |
entry: { | |
app: './src/app.js' | |
}, | |
output: { | |
path: __dirname + '/dist', | |
publicPath: "/assets/", | |
filename: '[name].bundle.js' | |
}, | |
devServer: { | |
inline: true, | |
port: 8485 | |
}, | |
module: { | |
loaders: [ | |
{ | |
test: /\.js$/, | |
loader: 'babel', | |
exclude: /node_modules/, | |
query: { | |
cacheDirectory: true, | |
presets: ['react'] | |
} | |
} | |
] | |
} | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment