8000 what am i doing wrong?: Cannot resolve module 'index.js' · Issue #53 · jantimon/html-webpack-plugin · GitHub
[go: up one dir, main page]

Skip to content
what am i doing wrong?: Cannot resolve module 'index.js' #53
@tony-kerz

Description

@tony-kerz

hi,

i'm kind of a webpack noob, so prolly doing something stupid, but when i run webpack with the following configuration:

var HtmlWebpackPlugin = require('html-webpack-plugin')

module.exports = {
  entry: 'index.js',
  output: {
    path: 'dist',
    filename: 'index_bundle.js'
  },
  module: {
    loaders: [
      { test: /\.scss$/, loader: 'style!css!sass' },
      { test: /\.js$/, loader: 'babel', query: {stage: 1} }
    ]
  },
  devtool: 'cheap-module-eval-source-map',
  debug: true,
  plugins: [new HtmlWebpackPlugin()]
}

i get:

~/g/webpack-scratch (tk/html-plugin) $ webpack
Hash: 96ac1f7bada92e7c9381
Version: webpack 1.9.10
Time: 24ms
     Asset       Size  Chunks             Chunk Names
index.html  142 bytes          [emitted]  

ERROR in Entry module not found: Error: Cannot resolve module 'index.js' in /Users/tony/git/webpack-scratch

here is a link to the entire project for reference...

any guidance appreciated!

best,
tony.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0