File tree Expand file tree Collapse file tree 3 files changed +147
-49
lines changed
Expand file tree Collapse file tree 3 files changed +147
-49
lines changed Original file line number Diff line number Diff line change 5959 "@babel/preset-env" : " ^7.13.12" ,
6060 "@testing-library/jest-dom" : " ^5.11.10" ,
6161 "@testing-library/svelte" : " ^3.0.3" ,
62- "autoprefixer" : " ^9.8.6 " ,
62+ "autoprefixer" : " ^10.2.5 " ,
6363 "babel-core" : " ^7.0.0-bridge.0" ,
6464 "babel-jest" : " ^26.6.3" ,
6565 "babel-plugin-transform-es2015-modules-commonjs" : " ^6.26.2" ,
8181 "jsdoc" : " ^3.6.6" ,
8282 "jsdoc-template-ship-shape" : " ^0.1.1" ,
8383 "mutationobserver-shim" : " ^0.3.7" ,
84- "postcss" : " ^7.0.35 " ,
84+ "postcss" : " ^8.2.9 " ,
8585 "postinstall-postinstall" : " ^2.1.0" ,
8686 "prettier" : " ^2.2.1" ,
8787 "release-it" : " ^14.5.1" ,
9797 "rollup-plugin-livereload" : " ^2.0.0" ,
9898 "rollup-plugin-multi-entry" : " ^2.1.0" ,
9999 "rollup-plugin-node-resolve" : " ^5.2.0" ,
100- "rollup-plugin-postcss" : " ^2.9 .0" ,
100+ "rollup-plugin-postcss" : " ^4.0 .0" ,
101101 "rollup-plugin-replace" : " ^2.2.0" ,
102102 "rollup-plugin-scss" : " ^2.6.1" ,
103103 "rollup-plugin-serve" : " ^1.1.0" ,
Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ const plugins = [
3838 require ( 'autoprefixer' ) ,
3939 require ( 'cssnano' )
4040 ] ,
41- extract : 'dist/ css/shepherd.css'
41+ extract : 'css/shepherd.css'
4242 } )
4343] ;
4444
@@ -59,13 +59,15 @@ const rollupBuilds = [
5959
6060 output : [
6161 {
62- file : pkg . main ,
62+ dir : 'dist' ,
63+ entryFileNames : 'js/[name].js' ,
6364 format : 'umd' ,
6465 name : 'Shepherd' ,
6566 sourcemap : true
6667 } ,
6768 {
68- file : pkg . module ,
69+ dir : 'dist' ,
70+ entryFileNames : 'js/[name].esm.js' ,
6971 format : 'esm' ,
7072 sourcemap : true
7173 }
@@ -81,13 +83,15 @@ if (!process.env.DEVELOPMENT) {
8183 input : './src/js/shepherd.js' ,
8284 output : [
8385 {
84- file : 'dist/js/shepherd.min.js' ,
86+ dir : 'dist' ,
87+ entryFileNames : 'js/[name].min.js' ,
8588 format : 'umd' ,
8689 name : 'Shepherd' ,
8790 sourcemap : true
8891 } ,
8992 {
90- file : 'dist/js/shepherd.esm.min.js' ,
93+ dir : 'dist' ,
94+ entryFileNames : 'js/[name].esm.min.js' ,
9195 format : 'esm' ,
9296 sourcemap : true
9397 }
@@ -109,7 +113,7 @@ if (!process.env.DEVELOPMENT) {
109113 } ) ,
110114 postcss ( {
111115 plugins : [ require ( 'autoprefixer' ) , require ( 'cssnano' ) ] ,
112- extract : 'dist/ css/shepherd.css'
116+ extract : 'css/shepherd.css'
113117 } ) ,
114118 compiler ( ) ,
115119 license ( {
You can’t perform that action at this time.
0 commit comments