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:
32
webpack.config.js
Normal file
32
webpack.config.js
Normal 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'
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
};
|
Reference in New Issue
Block a user