File tree Expand file tree Collapse file tree 3 files changed +31
-14
lines changed
Expand file tree Collapse file tree 3 files changed +31
-14
lines changed Original file line number Diff line number Diff line change @@ -189,13 +189,12 @@ <h4>Channels</h4>
189189 < li class ="effect " id ="dec_blue_channel "> Dec Blue Channel</ li >
190190 < li class ="effect " id ="dec_green_channel "> Dec Green Channel</ li >
191191
192- < h5 > Watermark</ h5 >
192+ <!-- < h5>Watermark</h5>
193193 <li class="effect" id="watermark">Watermark</li>
194194
195195 <h4>Text</h4>
196196 <li class="effect" id="text">Text</li>
197- < li class ="effect " id ="text_border "> Text With Border</ li >
198-
197+ <li class="effect" id="text_border">Text With Border</li> -->
199198
200199 < h4 > Filters</ h4 >
201200 < li class ="filter " id ="oceanic "> Oceanic</ li >
Original file line number Diff line number Diff line change 55 "repository" : " https://github.com/silvia-odwyer/photon" ,
66 "license" : " Apache-2.0" ,
77 "scripts" : {
8- "start" : " webpack-dev-server -d " ,
8+ "start" : " webpack-dev-server" ,
99 "build" : " webpack"
1010 },
1111 "bin" : {
1212 "create-rust-webpack" : " .bin/create-rust-webpack.js"
1313 },
1414 "devDependencies" : {
15- "clean-webpack-plugin" : " ^2 .0.2 " ,
16- "file-loader" : " ^3.0.1 " ,
17- "@wasm-tool/wasm-pack-plugin" : " 0.1.6 " ,
18- "html-webpack-plugin" : " ^3.2.0 " ,
19- "webpack" : " ^4.27.1 " ,
20- "webpack-cli" : " ^3.1.2 " ,
21- "webpack-dev-server" : " ^3.1.10 "
15+ "clean-webpack-plugin" : " ^4 .0.0 " ,
16+ "file-loader" : " ^6.2.0 " ,
17+ "@wasm-tool/wasm-pack-plugin" : " 1.7.0 " ,
18+ "html-webpack-plugin" : " ^5.6.3 " ,
19+ "webpack" : " ^5 " ,
20+ "webpack-cli" : " ^6.0.1 " ,
21+ "webpack-dev-server" : " ^5.2.2 "
2222 },
2323 "dependencies" : {
24- "@silvia-odwyer/photon" : " ^0.1.0 " ,
24+ "@silvia-odwyer/photon" : " ^0.3.3 " ,
2525 "jimp" : " ^0.6.4"
2626 }
27- }
27+ }
Original file line number Diff line number Diff line change @@ -12,8 +12,23 @@ var mainConfig = {
1212 filename : "bundle.js"
1313 } ,
1414 devServer : {
15- contentBase : dist ,
15+ static : {
16+ directory : dist
17+ } ,
1618 } ,
19+ mode : "none" ,
20+ experiments : {
21+ asyncWebAssembly : true ,
22+ } ,
23+ ignoreWarnings : [
24+ ( warning ) => {
25+ const msg = warning . message ;
26+ return (
27+ msg . includes ( "The following asset(s) exceed the recommended size limit (244 KiB)." )
28+ ) ;
29+ } ,
30+ ] ,
31+
1732 module : {
1833 rules : [
1934 {
@@ -31,6 +46,9 @@ var mainConfig = {
3146 }
3247 ]
3348 } ,
49+ resolve : {
50+ extensions : [ ".js" , ".wasm" ]
51+ } ,
3452 plugins : [
3553 new HtmlWebpackPlugin ( {
3654 template : 'index.html'
You can’t perform that action at this time.
0 commit comments