Do you have a sweet ruby script that you want to easily share with your friends or a nice class that you think would be useful to others? Fret not, in this article, I will show you how to make a ruby gem using your existing ruby code.
I will be using a mock project with the following project structure:
It took me quite a bit of time to setup tailwind with webpack, so I’ve documented my steps here to help my future self and others.
mkdir tailwind-webpack-test && cd tailwind-webpack-test
npm init -y
3. Install webpack along with loaders.
babel is optional.
npm install --save-dev webpack webpack-cli webpack-dev-server babel-loader @babel/core @babel/preset-env style-loader css-loader postcss postcss-loader
4. Install tailwindcss.
npm install tailwindcss
mkdir dist src && touch dist/index.html src/index.js src/style.css
2. Copy the following into
webpack.config.js in the root of your directory.
There are two things that I gained from my experience as a tutor that is helping me become a better programmer: the ability to simplify complex topics to basic principles and the communication skills to clearly convey my ideas. Although teaching and development are completely different professions, the skills needed to excel in them are quite similar.
The ability to simplify complex topics to basic principles has enabled me to pick up new tools and programming concepts quickly. As a junior developer, I’ve had to pick up lots of new things like design patterns and algorithms. …
I’m a Full-Stack Developer who’s passionate about solving complex problems using code.