Changeset View
Changeset View
Standalone View
Standalone View
webpack.config.js
const path = require('path'); | const path = require('path'); | ||||
const r = require.resolve; | const r = require.resolve; | ||||
module.exports = plugins_path => ({ | module.exports = ec_path => ({ | ||||
devtool: 'eval-source-maps', | devtool: 'eval-source-maps', | ||||
entry: { | entry: { | ||||
'bundle.js': [ | 'bundle.js': [ | ||||
path.resolve(__dirname, './admin-panel/index.jsx'), | path.resolve(__dirname, './admin-panel/index.jsx'), | ||||
...plugins_path, | ...ec_path, | ||||
], | ], | ||||
}, | }, | ||||
output: { | output: { | ||||
filename: '[name]', | filename: '[name]', | ||||
path: path.resolve(__dirname, './public-admin'), | path: path.resolve(__dirname, './public-admin'), | ||||
}, | }, | ||||
module: { | module: { | ||||
rules: [ | rules: [ | ||||
▲ Show 20 Lines • Show All 46 Lines • Show Last 20 Lines |