• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Register
  • Login
Bagisto Forum

Bagisto

  • Register
  • Login
  • Search
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups

Velocity css file

General Discussion
6
30
5.7k
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S
    Shirah last edited by 4 Nov 2020, 04:17

    Hi can I know where is the css file for velocity? and why there is two kinds of velocity folder? One in the packages/webkul and another one in the resources/themes. I tried to make changes on velocity in resources/themes it works but not velocity in the packages/webkul. Mind to explain exactly which folder should I make changes and where is the velocity css ?

    Thank you.

    1 Reply Last reply Reply Quote 0
    • V
      vishalK last edited by 4 Nov 2020, 06:04

      Hi @Shirah

      You will find the css files of velocity by following the path given below:
      $root_folder/packages/Webkul/Velocity/src/Resources/assets/sass

      You can change css according to your requirement in the respective file and save, Now you have to run " npm run prod " inside velocity package.

      After performing above steps you have to publish all assets and file by running the " php artisan vendor:publish " command and press 0.

      Note: Kindly take backup of project before perform any steps given above.

      1 Reply Last reply Reply Quote 0
      • S
        Shirah last edited by 4 Nov 2020, 06:47

        To run " npm run prod " inside the velocity package, you mean $root_folder/packages/Webkul/Velocity right?

        1 Reply Last reply Reply Quote 0
        • V
          vishalK last edited by 4 Nov 2020, 14:06

          Hi @Shirah

          Yes

          Thanks!

          1 Reply Last reply Reply Quote 0
          • S
            Shirah last edited by 4 Nov 2020, 16:24

            I can't run the npm. I get the npm error.

            The error:
            'npm' is not recognized as an internal or external command,
            operable program or batch file.

            1 Reply Last reply Reply Quote 0
            • V
              Vaishali Agarwal last edited by 4 Nov 2020, 16:34

              @Shirah
              first run the command

              npm i
              npm run prod

              1 Reply Last reply Reply Quote 0
              • S
                Shirah last edited by 4 Nov 2020, 16:53

                I still get the same error.

                1 Reply Last reply Reply Quote 0
                • V
                  Vaishali Agarwal last edited by 5 Nov 2020, 10:27

                  @Shirah said in Velocity css file:

                  'npm' is not recognized as an internal or external command,

                  first check that npm must be installed on your system using command

                  npm -v
                  

                  if already installed and showing the error then follow the solution provided here https://stackoverflow.com/questions/20992723/npm-is-not-recognized-as-internal-or-external-command-operable-program-or-bat/47524025

                  1 Reply Last reply Reply Quote 0
                  • S
                    Shirah last edited by 6 Nov 2020, 01:55

                    Thank you the problem solve. But now I make changes in the shared.scss files but nothing change.

                    1 Reply Last reply Reply Quote 0
                    • V
                      Vaishali Agarwal last edited by 6 Nov 2020, 05:00

                      @Shirah
                      make sure you have followed the command in a proper way-

                      run the below command inside package/velocity

                      npm run prod
                      

                      now go to the project root directory and execute below and press the index number of velocity package

                      php artisan vendor:publish --force
                      
                      1 Reply Last reply Reply Quote 0
                      • S
                        Shirah last edited by 11 Nov 2020, 03:45

                        Still not working. I received other error.

                        npm.PNG

                        1 Reply Last reply Reply Quote 0
                        • R
                          raouf415 last edited by 16 Nov 2020, 16:18

                          i have exactly the same issues cannot readproperty 'inProduction' any solution ?

                          1 Reply Last reply Reply Quote 0
                          • V
                            Vaishali Agarwal last edited by 16 Nov 2020, 16:26

                            @raouf415
                            please first check that node and npm should be installed on your system.

                            1 Reply Last reply Reply Quote 0
                            • R
                              raouf415 last edited by raouf415 16 Nov 2020, 16:30 16 Nov 2020, 16:29

                              Already installed npm 6.14.8 a node 8.0.0 sorry node 14.15.0

                              1 Reply Last reply Reply Quote 0
                              • R
                                raouf415 last edited by 16 Nov 2020, 16:32

                                Here is error when test now
                                npm ERR! code ELIFECYCLE
                                npm ERR! errno 1
                                npm ERR! @ watch: cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --watch --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js
                                npm ERR! Exit status 1
                                npm ERR!
                                npm ERR! Failed at the @ watch script.
                                npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

                                npm ERR! A complete log of this run can be found in:
                                npm ERR! /home/raouf/.npm/_logs/2020-11-16T16_31_38_907Z-debug.log

                                1 Reply Last reply Reply Quote 0
                                • V
                                  Vaishali Agarwal last edited by 16 Nov 2020, 16:40

                                  @raouf415
                                  your application is under dev mode or production mode?

                                  R 1 Reply Last reply 16 Nov 2020, 16:46 Reply Quote 0
                                  • R
                                    raouf415 last edited by 16 Nov 2020, 16:46

                                    This post is deleted!
                                    1 Reply Last reply Reply Quote 0
                                    • R
                                      raouf415 @Vaishali Agarwal last edited by 16 Nov 2020, 16:46

                                      @Vaishali-Agarwal
                                      you mean ?
                                      'env' => env('APP_ENV', 'production'),

                                      1 Reply Last reply Reply Quote 0
                                      • V
                                        Vaishali Agarwal last edited by 16 Nov 2020, 16:49

                                        @raouf415
                                        Yes, if inside .env the APP_DEBUG=false it means the application is under production mode else if APP_DEBUG=true (development mode)

                                        R 1 Reply Last reply 16 Nov 2020, 16:50 Reply Quote 0
                                        • R
                                          raouf415 @Vaishali Agarwal last edited by 16 Nov 2020, 16:50

                                          @Vaishali-Agarwal App_debug = true

                                          1 Reply Last reply Reply Quote 0
                                          5 out of 30
                                          • First post
                                            5/30
                                            Last post