The getting-started tutorial doesn't work on windows
See original GitHub issueI’m new to webpack 1.9.11 and are following the getting-started tutorial. Unfortunately I can only get to Binding loaders, where I get the following error:
C:\Users\dotnet\Projects\playground\webpack_tut (master)
λ webpack ./entry.js bundle.js --module-bind 'css=style!css'
Hash: 3fd1ef8aa00068f12535
Version: webpack 1.9.11
Time: 52ms
Asset Size Chunks Chunk Names
bundle.js 1.72 kB 0 [emitted] main
[0] ./entry.js 65 bytes {0} [built] [1 error]
[1] ./style.css 0 bytes [built] [failed]
[2] ./content.js 47 bytes {0} [built]
ERROR in ./style.css
Module parse failed: C:\Users\dotnet\Projects\playground\webpack_tut\style.css Line 1: Unexpected token {
You may need an appropriate loader to handle this file type.
| body {
| background: yellow;
| }
@ ./entry.js 1:0-22
My entry.js:
require("./style.css");
document.write(require("./content.js"));
My style.css:
body {
background: yellow;
}
npm list --depth=0
:
C:\Users\dotnet\Projects\playground\webpack_tut
├── css-loader@0.14.5
├── node-libs-browser@0.5.2
└── style-loader@0.12.3
Issue Analytics
- State:
- Created 8 years ago
- Comments:34 (1 by maintainers)
Top Results From Across the Web
unclear instructions, hard to start, where to create Dockerfile ...
I installed Docker Desktop in Windows 10 and went through the Getting Started tutorial/container. The instructions were fairly clear to me ...
Read more >First time Docker user, started with the tutorial, the tutorial is ...
So I've installed it on Windows and tried to do the tutorial. Well, the tutorial doesn't work, I have no idea why not....
Read more >Get Started with Windows 11 and Windows 10
12 Things You Should Do Before Installing A Windows Feature Update New! Tutorial: The Window 7 User's Guide to Getting the Most Out...
Read more >Is there something missing in docker getting-started tutorial?
TL;DR;. Run the command docker-compose down --volumes. to remove any problematic volume created during the tutorial early phases, then, ...
Read more >A Docker Tutorial for Beginners
Until a few releases ago, running Docker on OSX and Windows was quite a hassle. ... To get started, let's run the following...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Try double quotes
webpack ./entry.js bundle.js --module-bind "css=style!css"
+1 on single quotes. May be worth updating the docs?