Answer the question
In order to leave comments, you need to log in
How to properly use webpack + angular templateCache?
Hello! I understand Webpack-om. There is an application on Angular, Gulp + Webpack is used.
I want everything to be pulled up through Angular $templateCache . I create a task in Galp, it makes a template file for me, where everything is clearly collected and requested to the glive app, everything works, then it's up to Webpack:
entry: {
app: ["bootstrap-webpack!./bootstrap.config.js", './app/app.js'],
vendor: ['angular', 'bootstrap', 'angular-ui-router', 'oclazyload']
},
output: {
path: path.join(__dirname, "dist"),
filename: '/bundle.js'
},
plugins: [
new webpack.optimize.CommonsChunkPlugin( /* chunkName= */ "vendor", /* filename= */ "/vendor.bundle.js"),
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question