title: how can i get the lang html attribute in webpack configuration
body: <pre><code>    const lang = "the lang html attribute value";
  
      var languages = {
          "fr": require("./languages/fr.json"),
          "en": require("./languages/en.json")
      };
  
      var configuration = Object.keys(languages).map(function(language) {
          const loadedLang = (lang.indexOf("fr") &gt; -1) ? "fr" : "en";
          return {
              name: loadedLang,
              entry: './assets/js/main.js',
              output: {
                  filename: 'bundle.js',
                  path: path.resolve(__dirname, 'assets/js/dist')
              },
              plugins: [
                  new I18nPlugin(
                      languages[loadedLang]
                  )
              ]
          }
      });
  </code></pre>
  
  <p>So I am trying to get the <code>&lt;html lang="en-US"&gt;</code> lang attribute and I know that I have no access to the DOM from the webpack config file.</p>
  
  <p>My question is:</p>
  
  <p>Does someone have an idea about how to do this or how to have access to the local storage from webpack?</p>
  
  <p>PS:
  I tried a node-localstorage package but it doesn't do the job I want </p>