When I use gulp it brings together all my .css files of course within these css files there are image paths etc. Do I have to go through and weed out each function and add them to a new css document. I don't want to edit direct into my app.css etc as if im thinking straight every time I run gulp it will override and go back to default?
Are the paths to the images relative to the source .css files or are they relative to the destination app.css file?
I ask because I make all of my paths relative to the resource root and within my PHPStorm project set the public folder to be the resource root so that my file paths are always accurate for the destination .css file.
I don't have time to go through the gulp file in detail tonight but I'll take another look tomorrow. In the meantime you might want to use the mix.scriptsIn function so you don't have to list each individual file in your gulp file.
Move your assets to the standard locations (resources folder for your custom assets, node_modules folder for front-end dependencies that you include in your package.json file and install with npm.)
Include your third-party SCSS libraries (bootstrap, mega menu, font awesome, etc...) in your main SCSS file using @import calls to import them from their location in the node modules directory.
For the JavaScript only include the minified version of a file or the non-minified version rather than pulling both copies into your app.js
@DaveBagler
I am currently working through what I need and what I don't. I am currently working on the "admin" section the front end is going to be completely diff style:
Are you using all those Javascript files? - As above
I've never tried to make a third party template work with elixir before. You might need to play around more with where you are storing/grabbing files.
I don't know your app so I can't tell you if this is worth while but it might be worth identifying each library used by the theme, finding the npm package for that library and including them though npm so they are part of your work flow and then like I said using the @import statements in your main SCSS file to bring in 3rd party CSS and then just including the minified versions of whichever javascript files you're using.
Thanks @DaveBagler it was the storing grabbing files that was getting to be and why was I getting admin/admin is there a way to move the files? thats were I am confused. The theme is not on NPM :(
Yeah I wouldn't expect the theme to be on npm however the libraries used by the theme (bootstrap, amcharts, bootstrap-datetimepicker, ckeditor, etc...) are on npm, you would need to include each of them in your package.json file.