Joeri de Gooijer pushed to branch feature/webpack at cms-community / hippo-addon-channel-manager
Commits: e5012ebf by Joeri de Gooijer at 2016-09-19T16:09:12+02:00 CHANNELMGR-863 update dev webpack config - - - - - 1 changed file: - frontend-ng/conf/webpack.conf.js Changes: ===================================== frontend-ng/conf/webpack.conf.js ===================================== --- a/frontend-ng/conf/webpack.conf.js +++ b/frontend-ng/conf/webpack.conf.js @@ -2,6 +2,7 @@ const webpack = require('webpack'); const conf = require('./gulp.conf'); const path = require('path'); +const CopyWebpackPlugin = require('copy-webpack-plugin'); const HtmlWebpackPlugin = require('html-webpack-plugin'); const autoprefixer = require('autoprefixer'); @@ -68,6 +69,15 @@ module.exports = { 'window.jQuery': 'jquery', 'window.dragula': 'dragula', }), + new CopyWebpackPlugin([ + { + from: path.resolve(conf.paths.npmDir, 'dragula', 'dist', 'dragula.min.js'), + to: path.resolve(conf.paths.dist, 'scripts', 'dragula.min.js'), + }, { + from: path.resolve(conf.paths.npmDir, 'dragula', 'dist', 'dragula.min.css'), + to: path.resolve(conf.paths.dist, 'styles', 'dragula.min.css'), + }, + ]), ], postcss: [ autoprefixer({ @@ -82,9 +92,9 @@ module.exports = { debug: true, devtool: 'cheap-module-eval-source-map', output: { - filename: '[name].[hash].js', + filename: '[name]-[hash].js', path: path.join(process.cwd(), conf.paths.dist), - publicPath: '/', + publicPath: '/cms/angular/hippo-cm/', }, entry: { vendor: conf.vendors, View it on GitLab: https://code.onehippo.org/cms-community/hippo-addon-channel-manager/commit/e5012ebf4306e05249438a8916564a8eeebea459
_______________________________________________ Hippocms-svn mailing list Hippocms-svn@lists.onehippo.org https://lists.onehippo.org/mailman/listinfo/hippocms-svn