mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-12-30 23:23:08 +00:00
23c7b5b0a6
Webpack now uses relative paths for resources linked from by static snippets. A templated <base> tag has been introduced in headers so app.js can set the base URL at runtime. Signed-off-by: Enrico Guiraud <enrico.guiraud@cern.ch>
25 lines
537 B
JavaScript
25 lines
537 B
JavaScript
const MiniCssExtractPlugin = require('mini-css-extract-plugin')
|
|
const path = require('path')
|
|
|
|
module.exports = {
|
|
name: 'save-as-html',
|
|
entry: {
|
|
htmlExport: path.join(__dirname, 'public/js/htmlExport.js')
|
|
},
|
|
module: {
|
|
rules: [{
|
|
test: /\.css$/,
|
|
use: [MiniCssExtractPlugin.loader, 'css-loader']
|
|
}]
|
|
},
|
|
output: {
|
|
path: path.join(__dirname, 'public/build'),
|
|
publicPath: 'build/',
|
|
filename: '[name].js'
|
|
},
|
|
plugins: [
|
|
new MiniCssExtractPlugin({
|
|
filename: 'html.min.css'
|
|
})
|
|
]
|
|
}
|