mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Bring React into the tree, and add linting and bundling framework for the JS etc.
This commit is contained in:
29
web/webpack.config.js
Normal file
29
web/webpack.config.js
Normal file
@@ -0,0 +1,29 @@
|
||||
/* eslint-env node */
|
||||
|
||||
module.exports = {
|
||||
context: __dirname + '/pgadmin/static/jsx',
|
||||
entry: './components.jsx',
|
||||
output: {
|
||||
libraryTarget: 'amd',
|
||||
path: __dirname + '/pgadmin/static/js/generated',
|
||||
filename: 'reactComponents.js',
|
||||
},
|
||||
|
||||
module: {
|
||||
rules: [{
|
||||
test: /\.jsx?$/,
|
||||
exclude: /node_modules/,
|
||||
use: {
|
||||
loader: 'babel-loader',
|
||||
options: {
|
||||
presets: ['es2015', 'react'],
|
||||
},
|
||||
},
|
||||
},
|
||||
],
|
||||
},
|
||||
|
||||
resolve: {
|
||||
extensions: ['.js', '.jsx'],
|
||||
},
|
||||
};
|
||||
Reference in New Issue
Block a user