AG-420 Improve React implementation
This commit is contained in:
33
webpack.config.trader.js
Normal file
33
webpack.config.trader.js
Normal file
@@ -0,0 +1,33 @@
|
||||
const webpack = require('webpack');
|
||||
const path = require('path');
|
||||
|
||||
const SRC_DIR = path.resolve(__dirname, 'src-trader-dashboard');
|
||||
|
||||
module.exports = {
|
||||
entry: SRC_DIR + "/index.js",
|
||||
output: {
|
||||
path: __dirname,
|
||||
filename: "dist/bundle.js"
|
||||
},
|
||||
module: {
|
||||
loaders: [
|
||||
{
|
||||
test: /\.css$/,
|
||||
loader: "style!css"
|
||||
},
|
||||
{
|
||||
test: /\.js$|\.jsx$/,
|
||||
include: SRC_DIR,
|
||||
loader: 'babel-loader',
|
||||
query: {
|
||||
presets: ['react', 'es2015']
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
resolve: {
|
||||
alias: {
|
||||
"ag-grid-root" : __dirname + "/node_modules/ag-grid"
|
||||
}
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user