leo6104 / ngx-slick-carousel

Angular 17+ wrapper for slick plugin
113 stars 45 forks source link

Wrong imports in dist folder #20

Closed WuglyakBolgoink closed 5 years ago

WuglyakBolgoink commented 5 years ago

If I do this

Include slick css in "styles" at your angular.json file :
  "styles": [
    ...
    "node_modules/slick-carousel/slick/slick.scss",
    "node_modules/slick-carousel/slick/slick-theme.scss",
    ...
  ]

then I have all fonts inside my /dist folder and not in fonts folder... Can u help me to clean this?

"options": {
                        "outputPath": "dist/",
                        "index": "src/index.html",
                        "main": "src/main.ts",
                        "polyfills": "src/polyfills.ts",
                        "tsConfig": "src/tsconfig.app.json",
                        "assets": [
                            {
                                "glob": "**/*",
                                "input": "_assets/images",
                                "output": "/images"
                            },
                            {
                                "glob": "**/*",
                                "input": "_assets/fonts",
                                "output": "/fonts"
                            },
                            {
                                "glob": "**/*",
                                "input": "node_modules/slick-carousel/slick/fonts",
                                "output": "/fonts"
                            },
                            {
                                "glob": "ajax-loader.gif",
                                "input": "node_modules/slick-carousel/slick",
                                "output": "/"
                            },

                        ],

                        "styles": [
                            "node_modules/slick-carousel/slick/slick.scss",
                            "node_modules/slick-carousel/slick/slick-theme.scss",
                            "src/styles.scss",
                        ],
                        "scripts": [
                            "node_modules/jquery/dist/jquery.min.js",
                            "node_modules/slick-carousel/slick/slick.min.js"
                        ],
                        "es5BrowserSupport": true,
                        "sourceMap": {
                            "scripts": true,
                            "styles": true,
                            "vendor": false
                        }
                    },
WuglyakBolgoink commented 5 years ago

duplicate: https://discourse.roots.io/t/wrong-path-for-bower-plugins-with-fonts/6451