mirror of
https://github.com/sergeyyarkov/digital-store.git
synced 2026-10-11 10:19:15 +03:00
26 lines
533 B
JavaScript
26 lines
533 B
JavaScript
const path = require('path');
|
|
|
|
module.exports = {
|
|
entry: {
|
|
admin: ['@babel/polyfill', './src/admin/index.js'],
|
|
main: ['@babel/polyfill', './src/main/index.js']
|
|
},
|
|
output: {
|
|
filename: '[name].js',
|
|
path: path.join(__dirname, '/dist/public/js/')
|
|
},
|
|
resolve: {
|
|
extensions: ['.js']
|
|
},
|
|
module: {
|
|
rules: [
|
|
{ test: /\.js$/, exclude: /node_modules/, loader: 'babel-loader' }
|
|
]
|
|
},
|
|
devServer: {
|
|
contentBase: './dist/public/js',
|
|
proxy: {
|
|
"/": 'http://localhost:3000'
|
|
},
|
|
}
|
|
} |