Build package that includes:
These files are pre-configured for WordPress themes. Run npm install
and update the themeName
and domain
names in webpack.mix.js
with your project's theme name and development domain.
Then, run one of the following to get started:
npm run watch
to auto-compile watched styles and scripts. Add:3000
to your development domain in the browser to use Browsersync.npm run dev
to compile (but not minify) watched styles and scriptsnpm run hot
to watch styles and scripts with hot reloadingnpm run production
to compile and minify styles and scripts
This package is minimal and does not include Bootstrap, SASS, jQuery, or other common tools you may be more comfortable with. Mix makes it easy to add these back in if you need to, but after getting acquainted with Tailwind and Vue you may not miss them as much as you think.
As of Tailwind 0.3.0, each color in the config file adds an extra 1kb of minified CSS. Since a majority of my projects have their designs locked before going into development, I removed most of the default Tailwind colors to keep file size down.