Пытался что то такое сделать
module.exports = function ( app ) {
app.derictive ( "ngDynamicSelect", function ( ) {
return {
restrict: "A",
template: require( "../templates/list.html" ),
scope: {
ngDynamicLest: "="
}
}
} )
};
gulpfile
var gulp = require('gulp'),
webpack = require ( "webpack" );
gulp.task("webpack", function(callback) {
webpack({
entry: [ "src/directives/dynamic-select" ],
output: {
filename: "dist/ngDynamicSelect.js"
}
}, function(err, stats) {
console.log( err);
callback();
});
})
gulp.task('default', [ "webpack" ] );