mirror of
https://github.com/knadh/listmonk.git
synced 2024-11-10 17:13:04 +08:00
68512d2dcd
- Load bundled TinyMCE i18n language file based on a listmonk -> TinyMCE map. - Refactor editor initialisation to accommodate this change. - Introduce `constants.js -> uris.static` to make the static URI available to TinyMCE for loading language files.
37 lines
1 KiB
JavaScript
Vendored
37 lines
1 KiB
JavaScript
Vendored
module.exports = {
|
|
publicPath: '/admin',
|
|
outputDir: 'dist',
|
|
|
|
// This is to make all static file requests generated by Vue to go to
|
|
// /frontend/*. However, this also ends up creating a `dist/frontend`
|
|
// directory and moves all the static files in it. The physical directory
|
|
// and the URI for assets are tightly coupled. This is handled in the Go app
|
|
// by using stuffbin aliases.
|
|
assetsDir: 'static',
|
|
|
|
// Move the index.html file from dist/index.html to dist/frontend/index.html
|
|
// indexPath: './frontend/index.html',
|
|
|
|
productionSourceMap: false,
|
|
filenameHashing: true,
|
|
|
|
css: {
|
|
loaderOptions: {
|
|
sass: {
|
|
implementation: require('sass'), // This line must in sass option
|
|
},
|
|
},
|
|
},
|
|
|
|
devServer: {
|
|
port: process.env.LISTMONK_FRONTEND_PORT || 8080,
|
|
proxy: {
|
|
'^/$': {
|
|
target: process.env.LISTMONK_API_URL || 'http://127.0.0.1:9000'
|
|
},
|
|
'^/(api|webhooks|subscription|public)': {
|
|
target: process.env.LISTMONK_API_URL || 'http://127.0.0.1:9000'
|
|
}
|
|
}
|
|
}
|
|
};
|