title: URIError: Failed to decode param '/%PUBLIC_URL%/ WEBPACK
body: <p>I have a problem running my react application with webpack, I have this error:</p>
  
  <pre><code>URIError: Failed to decode param '/%PUBLIC_URL%/src/css/TagsCheck.css'
      at decodeURIComponent (&lt;anonymous&gt;)
  </code></pre>
  
  <p>and this is my webpack.config.js:</p>
  
  <pre><code>var debug = process.env.NODE_ENV !== "production";
  var webpack = require('webpack');
  var path = require('path');
  var HtmlWebpackPlugin = require('html-webpack-plugin');
  var InterpolateHtmlPlugin = require('react-dev-utils/InterpolateHtmlPlugin');
  var publicUrl = '/public';
  
  module.exports = {
    context: path.join(__dirname, "src"),
    devtool: debug ? "inline-sourcemap" : false,
    entry: "./index.js",
    devServer: {
      host: '0.0.0.0',
      port: 8080,
      inline: true
    },
    module: {
      loaders: [
        {
          test: /\.jsx?$/,
          exclude: /(node_modules|bower_components)/,
          loader: 'babel-loader',
          query: {
            presets: ['react', 'es2015', 'stage-0'],
            plugins: ['react-html-attrs', 'transform-decorators-legacy', 'transform-class-properties'],
          }
        }
      ]
    },
    output: {
      path: __dirname + "/src/",
      filename: "client.min.js"
    },
    plugins: debug ? [] : [
      new webpack.optimize.DedupePlugin(),
      new webpack.optimize.OccurrenceOrderPlugin(),
      new webpack.optimize.UglifyJsPlugin({ mangle: false, sourcemap: false }),
      // new HtmlWebpackPlugin({
      //     pkg: require("./package.json"),
      //     template: 'template.html',
      //     inject: false
      // }),
      // Makes the public URL available as %PUBLIC_URL% in index.html, e.g.:
      // &lt;link rel="shortcut icon" href="%PUBLIC_URL%/favicon.ico"&gt;
      new InterpolateHtmlPlugin({
        PUBLIC_URL: publicUrl
        // You can pass any key-value pairs, this was just an example.
        // WHATEVER: 42 will replace %WHATEVER% with 42 in index.html.
      }),
      // Generates an `index.html` file with the &lt;script&gt; injected.
      new HtmlWebpackPlugin({
        inject: true,
        template: path.resolve('public/index.html'),
      }),
    ],
  };
  </code></pre>
  
  <p>I want that in my index file can read the value of <code>/%PUBLIC_URL%/</code>.
  What I have to do to make running my code?</p>
  
  <p>And I have another question...
  I am using react and I am importing the library react-native, Will I have some problem with the var <code>PUBLIC_URL</code>?</p>
  
  <p>I can make the app easly only importing the <code>'react-native'</code> library?</p>
  
  <p>Thanks so much.
  Regards,</p>