2020-08-16 20:24:45 +02:00
|
|
|
const path = require('path');
|
2020-05-04 12:44:12 +02:00
|
|
|
const common = require('./webpack.common');
|
|
|
|
const merge = require('webpack-merge');
|
2020-08-15 12:44:52 +02:00
|
|
|
const HtmlWebpackPlugin = require('html-webpack-plugin');
|
2019-09-30 23:51:46 +03:00
|
|
|
|
|
|
|
module.exports = merge(common, {
|
2020-05-04 12:44:12 +02:00
|
|
|
mode: 'development',
|
2020-08-15 12:44:52 +02:00
|
|
|
entry: './scripts/standalone.js',
|
|
|
|
devtool: 'source-map',
|
2019-10-01 02:58:05 +03:00
|
|
|
module: {
|
|
|
|
rules: [
|
2020-10-17 19:09:56 +01:00
|
|
|
{
|
|
|
|
test: /\.js$/,
|
|
|
|
enforce: 'pre',
|
|
|
|
use: ['source-map-loader']
|
2020-02-28 14:36:42 +01:00
|
|
|
},
|
2019-10-01 02:58:05 +03:00
|
|
|
]
|
2020-08-15 12:44:52 +02:00
|
|
|
},
|
|
|
|
plugins: [
|
|
|
|
new HtmlWebpackPlugin({
|
|
|
|
filename: 'index.html',
|
|
|
|
template: 'index.html'
|
|
|
|
})
|
2020-08-16 20:24:45 +02:00
|
|
|
],
|
|
|
|
devServer: {
|
|
|
|
contentBase: path.join(__dirname, 'dist'),
|
|
|
|
compress: true
|
|
|
|
}
|
2019-09-30 23:51:46 +03:00
|
|
|
});
|