Skip to content

Commit

Permalink
bug move assets
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolaslabbe committed Oct 28, 2016
1 parent 604b533 commit 8f9eebf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/cli/cms/templates/assets.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export function copy(pathAssets) {

let exclude = new RegExp(config.files.exclude)
if(!exclude.test(name1) && !exclude.test(name2) && entry.type1 !== 'directory' && entry.type2 !== 'directory') {

if(typeof entry.path1 !== 'undefined' && entry.path1 !== null) {
var original = entry.path1
var basePath = original.replace(publicFolder, '')
Expand Down Expand Up @@ -72,7 +72,7 @@ export function getFolder(pathAssets = '') {

// now check if file for folder exist
Array.prototype.forEach.call(arr, (file) => {
var folderName = file.path.replace(/\..+$/, '') + assets
var folderName = file.path.replace(path.extname(file.path), '') + assets
try {
var directory = fse.lstatSync(folderName)
if (directory.isDirectory()) {
Expand Down

0 comments on commit 8f9eebf

Please sign in to comment.