mirror of
https://github.com/webslides/WebSlides.git
synced 2025-08-27 06:54:31 +02:00
Entry point
This commit is contained in:
27
webpack.config.babel.js
Normal file
27
webpack.config.babel.js
Normal file
@@ -0,0 +1,27 @@
|
||||
const path = require('path');
|
||||
|
||||
const src = path.join(__dirname, 'src');
|
||||
|
||||
module.exports = {
|
||||
context: src,
|
||||
entry: {
|
||||
webslides: './full.js',
|
||||
"webslides-lite": './lite.js'
|
||||
},
|
||||
output: {
|
||||
filename: '[name].js',
|
||||
path: path.join(__dirname, 'dist')
|
||||
},
|
||||
devServer: {
|
||||
contentBase: __dirname,
|
||||
},
|
||||
module: {
|
||||
rules: [
|
||||
{
|
||||
test: /\.js$/,
|
||||
loader: 'babel-loader',
|
||||
include: src
|
||||
}
|
||||
]
|
||||
}
|
||||
};
|
Reference in New Issue
Block a user