Merge pull request #490 from h3poteto/fix/build
Fix buil setting for locales
This commit is contained in:
commit
192b491e0f
|
@ -6,6 +6,7 @@ const path = require('path')
|
|||
const { dependencies } = require('../package.json')
|
||||
const webpack = require('webpack')
|
||||
|
||||
const CopyWebpackPlugin = require('copy-webpack-plugin')
|
||||
const MinifyPlugin = require('babel-minify-webpack-plugin')
|
||||
|
||||
let mainConfig = {
|
||||
|
@ -49,7 +50,14 @@ let mainConfig = {
|
|||
path: path.join(__dirname, '../dist/electron')
|
||||
},
|
||||
plugins: [
|
||||
new webpack.NoEmitOnErrorsPlugin()
|
||||
new webpack.NoEmitOnErrorsPlugin(),
|
||||
new CopyWebpackPlugin([
|
||||
{
|
||||
from: path.join(__dirname, '../src/config/locales'),
|
||||
to: path.join(__dirname, '../dist/electron/locales'),
|
||||
ignore: ['.*', '*~']
|
||||
}
|
||||
])
|
||||
],
|
||||
resolve: {
|
||||
extensions: ['.js', '.json', '.node']
|
||||
|
|
Loading…
Reference in New Issue