0
나는 각양 각색의 프로젝트를 만들기 위해 yeoman을 사용했다. 빌드 할 때 app.js 파일은 dist 폴더에 만들어 지지만 파일 이름은 app.js이지만 app.2bf032ifs.js가됩니다. 이유를 모르겠습니다. 파일 이름에 난수로 파일을 생성 하시겠습니까?
uglify: {
build: {
src: '<%= yeoman.app %>/scripts/**/*.js',
dest: '<%= yeoman.dist %>/scripts/app.js'
}
},
내가 메시지
Running "ngtemplates:dist" (ngtemplates) task
File .tmp/templateCache.js created.
>> Usemin has not created uglify.generated yet!
1) 나는 올바른 파일 이름을 얻는 방법을 모르는를 얻을 그런트 명령을 실행하는 동안 - 아래
은 내가 추하게을 쓴 방법이다 dist 폴더, 어떻게? 2) 위의 메시지를 제거하는 방법은 무엇입니까? 3) 파일 이름, 최종 CSS 파일을 생성하는 동안 유사한 동작.
주 - 다음은이 전략은 파일마다의 새 복사본을 다운로드하려면 브라우저를 얘기하는 데 사용됩니다,이 때문에 'filerev'라는 이름의 작업의 일이 내 usemin 작업
usemin: {
html: ['<%= yeoman.dist %>/{,*/}*.html'],
css: ['<%= yeoman.dist %>/styles/{,*/}*.css'],
js: ['<%= yeoman.dist %>/scripts/{,*/}*.js'],
options: {
assetsDirs: [
'<%= yeoman.dist %>',
'<%= yeoman.dist %>/images',
'<%= yeoman.dist %>/styles'
],
patterns: {
js: [[/(images\/[^''""]*\.(png|jpg|jpeg|gif|webp|svg))/g, 'Replacing references to images']]
}
}
},