Outils pour utilisateurs

Outils du site


installation_de_standardnotes

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Les deux révisions précédentesRévision précédente
Prochaine révision
Révision précédente
installation_de_standardnotes [2021/09/11 00:00] tomampliusinstallation_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://deb.nodesource.com/setup_15.x | bash -+wget -qO - https://deb.nodesource.com/setup_16.x | bash -
 apt-get install -y nodejs  apt-get install -y nodejs 
  
Ligne 108: Ligne 108:
  
 cat << 'EOF' > /usr/lib/standardnotes/web/webpack.dev.js cat << 'EOF' > /usr/lib/standardnotes/web/webpack.dev.js
-const { merge } = require('webpack-merge');+onst { merge } = require('webpack-merge');
 const config = require('./webpack.config.js'); const config = require('./webpack.config.js');
 const HtmlWebpackPlugin = require('html-webpack-plugin'); const HtmlWebpackPlugin = require('html-webpack-plugin');
 +const mergeWithEnvDefaults = require('./webpack-defaults.js');
  
 module.exports = (env, argv) => { module.exports = (env, argv) => {
   const port = argv.port || 3004;   const port = argv.port || 3004;
 +  mergeWithEnvDefaults(env);
   return merge(config(env, argv), {   return merge(config(env, argv), {
     mode: 'development',     mode: 'development',
-    /** Only create an html file for the dev-server */ +    optimization:
-    plugins: argv.liveReload ? [+      minimize: false, 
 +    }, 
 +    plugins: [
       new HtmlWebpackPlugin({       new HtmlWebpackPlugin({
         template: './index.html',         template: './index.html',
 +        inject: true,
         templateParameters: {         templateParameters: {
-          env: process.env+          env: process.env,
         },         },
       }),       }),
-    ] : [],+    ],
     devServer: {     devServer: {
-       disableHostChecktrue+      allowedHosts['all']
-       host: '0.0.0.0',  +      host: '0.0.0.0', 
-      proxy+      hot: 'only', 
-        '/extensions': { +      static: './', 
-          target: `http://standardnotes.net.lgy.fr:${port}`+      port, 
-          pathRewrite'^/extensions': '/public/extensions'+      devMiddleware: { 
-        }+        writeToDisk: argv.writeToDisk,
-        '/assets':+
-          target: `http://standardnotes.net.lgy.fr:${port}`+
-          pathRewrite: { '^/assets': '/public/assets' } +
-        },+
       },       },
-      port, +    },
-      writeToDisk: argv.writeToDisk, +
-    }+
   });   });
 }; };
installation_de_standardnotes.1631311209.txt.gz · Dernière modification : 2021/09/11 00:00 de tomamplius

Sauf mention contraire, le contenu de ce wiki est placé sous les termes de la licence suivante : Public Domain
Public Domain Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki