1
0
mirror of https://github.com/Pomax/BezierInfo-2.git synced 2025-08-12 03:34:12 +02:00

start of revision control

This commit is contained in:
Pomax
2015-12-20 15:19:50 -08:00
commit 2e0a7c68d5
77 changed files with 29859 additions and 0 deletions

32
webpack.config.js Normal file
View File

@@ -0,0 +1,32 @@
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: /\.txt$/, loader: "raw" },
{ test: /\.(png|gif)$/, loader: "file" },
{ test: /\.less$/, loader: "style!css!less" },
{
test: /.jsx?$/,
exclude: /node_modules/,
loaders: [
'babel-loader',
__dirname + '/lib/latex-loader',
__dirname + '/lib/pre-loader'
]
}
]
},
};