πŸ•―
CHANGE LOG
Ncmaz-frontend plugin project development
You’ll need to have Node >= 12.13.0 on your local development machine (but it’s not required on the server). You can use nvm (macOS/Linux) or nvm-windows to switch Node versions between different projects.
npx
(npx comes with npm 5.2+ and higher, see instructions for older npm versions)
npm
npm init <initializer> is available in npm 6+
First, you need to open ncmaz-frontend folder (full directory) and run the following commands to install node_module:
  1. 1.
    npm install or yarn install
  2. 2.
    yarn dev
  3. 3.
    Open file Ncmaz-frontend/inc/ncmaz-enqueue-scripts.php
  4. 4.
    Comment line (188): add_action('wp_enqueue_scripts', 'ncmazFe_registerScripts');
  5. 5.
    Cancel comment line (222) : add_action('wp_enqueue_scripts', 'ncmaz_frontend_enqueue_script');
  6. 6.
    You can now access wordpress in development mode.
  7. 7.
    After the development is done, you run the command "yarn build" to rebuild the plugin
  8. 8.
    Undo steps 4 and 5 above.
  9. 9.
    Plugin is ready.
​
​
​
Copy link