Skip to content
This repository was archived by the owner on Dec 6, 2019. It is now read-only.

Commit

Permalink
Remove publishable folder
Browse files Browse the repository at this point in the history
  • Loading branch information
emptynick committed Mar 21, 2019
1 parent beb746a commit d87eda1
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 9 deletions.
4 changes: 4 additions & 0 deletions mix-manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"/resources/assets/dist/scripts.js": "/resources/assets/dist/scripts.js",
"/resources/assets/dist/styles.css": "/resources/assets/dist/styles.css"
}
4 changes: 0 additions & 4 deletions publishable/mix-manifest.json

This file was deleted.

File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions src/Http/Controllers/AssetController.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ class AssetController extends Controller
public function styles()
{
return response(
file_get_contents(__DIR__.'/../../../publishable/assets/css/styles.css'),
file_get_contents(__DIR__.'/../../../resources/assets/dist/styles.css'),
200,
['Content-Type' => 'text/css']
);
Expand All @@ -16,7 +16,7 @@ public function styles()
public function scripts()
{
return response(
file_get_contents(__DIR__.'/../../../publishable/assets/js/scripts.js'),
file_get_contents(__DIR__.'/../../../resources/assets/dist/scripts.js'),
200,
['Content-Type' => 'application/javascript']
);
Expand Down
5 changes: 2 additions & 3 deletions webpack.mix.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
let mix = require('laravel-mix');

mix.sass('resources/assets/scss/styles.scss', 'publishable/assets/css')
.js('resources/assets/js/scripts.js', 'publishable/assets/js')
.setPublicPath('publishable');
mix.sass('resources/assets/scss/styles.scss', 'resources/assets/dist')
.js('resources/assets/js/scripts.js', 'resources/assets/dist');

0 comments on commit d87eda1

Please sign in to comment.