question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

it doesn't work for me

See original GitHub issue

it doesn’t work for me with this configuration:

var HtmlWebpackPlugin = require('html-webpack-plugin');
var HtmlWebpackInlineSourcePlugin = require('html-webpack-inline-source-plugin');
const path = require('path');
module.exports = {
    entry: './index.js',
    output: {
        path: "dist",
        filename: 'bundle.js'
    },
    plugins: [
        new HtmlWebpackPlugin({
            filename: "index.html",
            hash: true,
            favicon: "./pic/123.jpg",
            inject: "head",
            title: "sth",
            inlineSource: '.(js|css)$',
        }),
        new HtmlWebpackInlineSourcePlugin(),
    ]
}

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
gabrielcsapocommented, Jun 8, 2017

woot woot output.publicPath fixed it for me

0reactions
pldgcommented, May 3, 2018

Not working for me.

I try to put the content of inline.js inside a <script> tag in the <head> of index.html.

const path = require('path');
const HtmlWebpackPlugin = require('html-webpack-plugin');
const HtmlWebpackInlineSourcePlugin = require('html-webpack-inline-source-plugin');

module.exports = {
    entry: {
      inline: './src/inline.js',
      index: './src/index.js'
    }
    output: {
        path: path.join(__dirname, 'dist'),
        filename: '[name].js'
    },
    plugins: [
        new HtmlWebpackPlugin({
            filename: 'index.html',
            template: 'src/index.html',
            chunks: ['index'],
            minify: {
              removeComments: true,
              collapseWhitespace: true
            },
            inlineSource: 'inline\.js' // regex match 'inline.js' file
        }),
        new HtmlWebpackInlineSourcePlugin()
    ]
}

With our without output.publicPath is not working. Anyway I can’t use output.publicPath because will break my app.

I miss something?

Read more comments on GitHub >

github_iconTop Results From Across the Web

it doesn't work to me or it doesn't work for me? - TextRanch
It doesn't work for me to go on with this thing, with such a wide gulf between those who understand, love and are...
Read more >
“That doesn't work for me.”. A How to Guide on Being Assertive
In a world full of people pleasing, being assertive is a needed trait. It forces you to strike the perfect balance.
Read more >
"This doesn't work for me" is the biggest mistake you'll make
Mindset matters in your small business. Learn how this simple statement "this doesn't work for me" can cripple your business, and what to...
Read more >
It doesn't work for me - WordReference Forums
Your friend has just called me and tried to speak with me about the same thing that we spoke with you in the...
Read more >
What is the difference between "it doesn't work for ... - HiNative
(2) It doesn't work for me means 1. a particular method/way of doing something does not work for the person 2. something is...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found