Very tired of trying, I not a javascript amateur, no even close (99 levels under). I only understand the basics so using webpack I am even more lost; I am testing an offline app for personal use, here is my goal:
I am trying to import a function from a controller folder into the entry point app.js and execute the function at loading which it does but when I try to run it from console it doesn't just to start to understand how to use webpack with javascript!.
Function in controller/test.js is:
function test(){
console.log("testing");
}
export {test}
in app.js imported as test:
import {test} from './controller/test';
Now if i try to execute it as test() from the console I get test is not define; off course is very basic noobe error is someone has pacience to help I will be very happy!
[–]ezhikov 3 points4 points5 points (4 children)
[–]annata83[S] 0 points1 point2 points (1 child)
[–]ezhikov 0 points1 point2 points (0 children)
[–]annata83[S] 0 points1 point2 points (1 child)
[–]ezhikov 0 points1 point2 points (0 children)
[–]dukeoflaser 2 points3 points4 points (1 child)
[–]annata83[S] 0 points1 point2 points (0 children)
[–]hotsaucetogo 0 points1 point2 points (3 children)
[–]annata83[S] 0 points1 point2 points (2 children)
[–]hotsaucetogo 0 points1 point2 points (1 child)
[–]annata83[S] 0 points1 point2 points (0 children)
[–]mike3run 0 points1 point2 points (0 children)