installation_de_standardnotes
Différences
Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente | ||
installation_de_standardnotes [2021/09/11 00:00] – tomamplius | installation_de_standardnotes [2021/11/04 22:06] (Version actuelle) – tomamplius | ||
---|---|---|---|
Ligne 38: | Ligne 38: | ||
apt install redis git build-essential python2 -y | apt install redis git build-essential python2 -y | ||
- | wget -qO - https:// | + | wget -qO - https:// |
apt-get install -y nodejs | apt-get install -y nodejs | ||
Ligne 108: | Ligne 108: | ||
cat << ' | cat << ' | ||
- | const { merge } = require(' | + | onst { merge } = require(' |
const config = require(' | const config = require(' | ||
const HtmlWebpackPlugin = require(' | const HtmlWebpackPlugin = require(' | ||
+ | const mergeWithEnvDefaults = require(' | ||
module.exports = (env, argv) => { | module.exports = (env, argv) => { | ||
const port = argv.port || 3004; | const port = argv.port || 3004; | ||
+ | mergeWithEnvDefaults(env); | ||
return merge(config(env, | return merge(config(env, | ||
mode: ' | mode: ' | ||
- | | + | |
- | plugins: | + | minimize: false, |
+ | }, | ||
+ | plugins: [ | ||
new HtmlWebpackPlugin({ | new HtmlWebpackPlugin({ | ||
template: ' | template: ' | ||
+ | inject: true, | ||
templateParameters: | templateParameters: | ||
- | env: process.env | + | env: process.env, |
}, | }, | ||
}), | }), | ||
- | | + | ], |
devServer: { | devServer: { | ||
- | | + | allowedHosts: [' |
- | | + | host: ' |
- | | + | |
- | | + | |
- | target: `http:// | + | port, |
- | | + | |
- | }, | + | |
- | '/ | + | |
- | target: `http:// | + | |
- | | + | |
- | | + | |
}, | }, | ||
- | port, | + | }, |
- | writeToDisk: | + | |
- | } | + | |
}); | }); | ||
}; | }; |
installation_de_standardnotes.1631311209.txt.gz · Dernière modification : 2021/09/11 00:00 de tomamplius