mirror of
https://github.com/Pomax/BezierInfo-2.git
synced 2025-01-18 05:58:52 +01:00
32 lines
723 B
JavaScript
32 lines
723 B
JavaScript
var webpack = require('webpack');
|
|
|
|
// Hot Reload server when we're in dev mode,
|
|
// otherwise build it the normal way.
|
|
var entry = ['./components/App.jsx'];
|
|
if(!process.argv.indexOf("--prod")) {
|
|
entry.push('webpack/hot/dev-server');
|
|
}
|
|
|
|
module.exports = {
|
|
entry: entry,
|
|
output: {
|
|
path: __dirname,
|
|
filename: 'article.js'
|
|
},
|
|
module: {
|
|
loaders: [
|
|
{ test: /\.(png|gif)$/, loader: "file?name=images/packed/[hash].[ext]" },
|
|
{ test: /\.less$/, loader: "style!css!less" },
|
|
{
|
|
test: /.jsx?$/,
|
|
exclude: /node_modules/,
|
|
loaders: [
|
|
'babel-loader',
|
|
__dirname + '/lib/latex-loader',
|
|
__dirname + '/lib/pre-loader'
|
|
]
|
|
}
|
|
]
|
|
},
|
|
};
|