I would like to have another way to create dev v in JSPM.
I am using JSPM version 0.17, which creates a separate dev file. In my case, they look something like this:
SystemJS.config({
paths: {
"npm:": "lib/npm/",
"my_project/": "dist/"
},
browserConfig: {
"baseURL": "/"
},
packages: {
"my_project": {
"main": "index.js"
}
}
});
SystemJS.config({
packageConfigPaths: [
"npm:@*/*.json",
"npm:*.json"
],
map: {
"jquery": "npm:jquery@3.0.0"
},
packages: {}
});
and my config.dev.js file looks something like this:
SystemJS.config({
transpiler: "plugin-babel",
packages: {
"my_project": {
"meta": {
"*.js": {
"loader": "plugin-babel"
}
},
}
},
map: {
"plugin-babel": "npm:systemjs-plugin-babel@0.0.12"
}
});
What I want to do is change the path my_project from dist / to src / when the config.dev.js file is included. The idea is that the files in dist are transferred, but src are my source files.
If I enable config.dev.js then it should download files from src / and run the babel plugin. If I do not enable config.dev.js, then it should load with dist / and not start the transpiler.
, paths dev, . , config.dev.js:
paths: {
"my_projects/": "src/"
}
, 404 mydomain/src ( - ).