File tree Expand file tree Collapse file tree 3 files changed +8
-4
lines changed
Expand file tree Collapse file tree 3 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -17,3 +17,5 @@ cc-test-reporter
1717# Build directories (Will be preserved by npm)
1818dist
1919build
20+ style.css
21+ style.css.map
Original file line number Diff line number Diff line change 55 "scripts" : {
66 "build" : " npm run clean && cross-env NODE_ENV=production TARGET=umd webpack --bail" ,
77 "build:demo" : " npm run clean:demo && cross-env NODE_ENV=production TARGET=demo webpack --bail && npm run build-storybook" ,
8- "clean" : " rimraf dist" ,
8+ "clean" : " rimraf dist style.css style.css.map " ,
99 "clean:demo" : " rimraf build" ,
1010 "start" : " cross-env NODE_ENV=development TARGET=development webpack-dev-server --inline --hot" ,
1111 "lint" : " eslint src examples" ,
2020 },
2121 "main" : " dist/main.js" ,
2222 "files" : [
23- " dist"
23+ " dist" ,
24+ " style.css" ,
25+ " style.css.map"
2426 ],
2527 "repository" : {
2628 "type" : " git" ,
Original file line number Diff line number Diff line change @@ -43,9 +43,9 @@ const cssLoaders =
4343 : [ styleLoader , ...defaultCssLoaders ] ;
4444
4545const config = {
46- entry : ' ./src/index',
46+ entry : { 'dist/main' : ' ./src/index' } ,
4747 output : {
48- path : path . join ( __dirname , 'dist' ) ,
48+ path : __dirname ,
4949 filename : '[name].js' ,
5050 libraryTarget : 'umd' ,
5151 library : 'ReactSortableTree' ,
You can’t perform that action at this time.
0 commit comments