Integrating CodeIgniter 3.1.9 with Laravel-Mix 2.1.14
How to use
- Clone this repo and
- Install npm modules.
- Setup symlink for
cross-envbinary to your path. Adjust your folder location. (Linux only)
sudo ln -s /home/users/tmp/ci3-with-laravel-mix/node_modules/cross-env/dist/bin/cross-env.js /usr/local/bin/cross-env
- Or, you can install
cross-envbinary globally in your npm environment and setup your NPM global binary location into your
Environment System Path. (For Windows)
npm install -g cross-env # Check global binary in npm npm -g list --depth=0 # Please ensure there is cross-env in the list.
- If everything OK with no Error, you can run webpack now.
# For development purpose npm run watch-poll # For production npm run prod
- For full npm command please read package.json
- Open your app in web browser to check it out.
Customize the file
Please feel free to comment, add useful info to this repo or send your issue.