You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have multiple proyects of polymer, but each one has its own modules to be compiled
but what I need is to share the same node_modules for all the projects I have, since they all use the same modules
Using custom build tools for build pwa
constfs=require('fs-extra');constpolymerBuild=require('polymer-build');constpath=require('path');constbuild=require('./build/build').build;// custom polymer builderconstutils=require('./util');/** * @param {String} name */asyncfunctionbuildProyect(name){varsetting=require(path.join(__dirname,'..','proyects',name,'polymer.json'));setting.root=path.join(__dirname,'..','proyects',name);//configure path root of the proyectconstproject=newpolymerBuild.PolymerProject(setting);constbuildSettings=utils.getBuildSettings(name);letarr=[];for(settingofbuildSettings){arr.push(build(setting,project,name));}awaitPromise.all(arr);}
if there are no node_modules in the project root, it does not compile the pwa
My idea is to put the node_modules in the project folder, but when doing this the constructor always looks in the root of the project, now my question is: How do I take the node_modules of the project directory to build the pwa?
for that I tried to put the absolute path where the modules were in the file polymer.json, but it did not work
The text was updated successfully, but these errors were encountered:
I have multiple proyects of polymer, but each one has its own modules to be compiled
but what I need is to share the same node_modules for all the projects I have, since they all use the same modules
Using custom build tools for build pwa
if there are no node_modules in the project root, it does not compile the pwa
My idea is to put the node_modules in the project folder, but when doing this the constructor always looks in the root of the project, now my question is: How do I take the node_modules of the project directory to build the pwa?
for that I tried to put the absolute path where the modules were in the file polymer.json, but it did not work
The text was updated successfully, but these errors were encountered: