Added CopyWebpackPlugin to webpack config

This commit is contained in:
William Welling
2016-12-01 13:05:17 -06:00
parent 7c3e0a3ca4
commit ed5b8a641f

View File

@@ -2,6 +2,7 @@ var webpack = require('webpack');
var path = require('path');
var clone = require('js.clone');
var webpackMerge = require('webpack-merge');
let CopyWebpackPlugin = require('copy-webpack-plugin');
export var commonPlugins = [
new webpack.ContextReplacementPlugin(
@@ -13,6 +14,11 @@ export var commonPlugins = [
}
),
new CopyWebpackPlugin([{
from: path.join(__dirname, 'resources', 'i18n'),
to: path.join('assets', 'i18n')
}]),
// Loader options
new webpack.LoaderOptionsPlugin({