colt / webpack-demo-app Goto Github PK
View Code? Open in Web Editor NEWAccompanies my 10-part Youtube Webpack course. Each commit comes with detailed notes.
Accompanies my 10-part Youtube Webpack course. Each commit comes with detailed notes.
When i use
background : Url("/src/assets/.....");
in .SCSS or .CSS file
When i run
npm run build
webpack does Not creating (.gif,.jpg,.png,.svg) in dist/img
And also
In dist/main.css
background : Url("/src/assets/.....");
Hi I'm trying to make the webpack.configure.js file work, and when I want to install sass-loader and node sass using the npm install sass-loader node-sass --save-dev , it fails and throws error,
Failed at the [email protected] postinstall script.
NPM version 6.10.2
Node version 12.9.1
I installed the version 13 of node and the newer version of npm and it is still the same. can you help me please?
this is the log file
https://gist.github.com/Mustafa-Hayati/0fbb5bbbc95aa2add18a4a8f5513eabf
The best webpack youtube tutorial ever, thanks Colt ๐.
TypeError: Cannot read property 'tap' of undefined - getting this error after adding html-webpack-plugin
I am in Windows 10 20H1 build and doing npm install everything is fine but the node-sass installation part is giving an error.
I have tried install npm i -D node-sass but it didn't work out.
Greetings,
Thanks for the great videos! Is there a simple way to convert the vue files to plain js that we can debug on the browser?
Thanks
Hi Colt,
It's worth mentioning that between commit 5 and 6, one would have to import the css file into their project for it to work, in addition to everything else you covered.
Hi, I followed the video up to part 7 (commit 9), but I'm having two problems right now. One, when I run 'npm start', Webpack doesn't create the Dist folder and only opens the html file in the browser but doesn't display any styles from bootstrap nor the inputs fields work at all.
In production mode, it does creates the Dist folder but the styles and the input fields are not working.
I checked the source code (html) after running both scripts (build and start). The main.css is created ( main.[contentHash].css also ), and is injected at the bottom of the code, but it doesn't execute the script.
Any idea why it's happening this? Thanks in advance!
The hamburger menu when clicked doesn't show a drop-down of menu items.
i look your video, its a wonderful appreciation. i am not trying it but let say my image path is stored in the database, how to move dist folder without contenthash.
My setup is exactly like this one, except my application includes a button that when pressed inserts HTML that includes tags into the site. Webpack seems to put the images that are initially loaded with the static homepage in the imgs folder but it doesn't put the ones that will be later inserted on user input.
Im trying to find files without webpack but I cant, can someone help me?
in newer version, webpack-merge should be imported like this:
const { merge } = require('webpack-merge');
[email protected] breaks npm install on Windows 10, resulting in the following error
gyp ERR! configure error
gyp ERR! stack Error: Can't find Python executable "python", you can set the PYTHON env variable.
gyp ERR! stack at PythonFinder.failNoPython (C:\Users\samir\Desktop\woooha\webpack-demo-app\node_modules\node-gyp\lib\configure.js:484:19)
gyp ERR! stack at PythonFinder.<anonymous> (C:\Users\samir\Desktop\woooha\webpack-demo-app\node_modules\node-gyp\lib\configure.js:509:16)
gyp ERR! stack at C:\Users\samir\Desktop\woooha\webpack-demo-app\node_modules\graceful-fs\polyfills.js:282:31
gyp ERR! stack at FSReqCallback.oncomplete (fs.js:158:21)
gyp ERR! System Windows_NT 10.0.18363
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\samir\\Desktop\\woooha\\webpack-demo-app\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="
gyp ERR! cwd C:\Users\samir\Desktop\woooha\webpack-demo-app\node_modules\node-sass
gyp ERR! node -v v12.13.1
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
Build failed with error code: 1
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] postinstall: `node scripts/build.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
EDIT: updating node-sass to version 4.13.1 solved this problem.
Is there a reason why Booststrap, Jquery and popper.js are in you devdependancies? I thought anything in devdependancies doesn't make it as part of the bundle.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.