diff options
| author | Luc Donnet | 2017-10-12 17:22:37 +0200 |
|---|---|---|
| committer | Luc Donnet | 2017-10-12 17:22:37 +0200 |
| commit | 65e5ac79147b6c55b76bcabf741b326d31317bd2 (patch) | |
| tree | 49fd0f2ad000ecad378c84f523d80841c155cbee /config | |
| parent | 0330dcdff13294283451659d4fa87db49ce9d4ef (diff) | |
| download | chouette-core-65e5ac79147b6c55b76bcabf741b326d31317bd2.tar.bz2 | |
Fix environment variables for webpack
Diffstat (limited to 'config')
| -rw-r--r-- | config/webpack/dev.js | 4 | ||||
| -rw-r--r-- | config/webpack/environment.js | 4 | ||||
| -rw-r--r-- | config/webpack/production.js | 4 | ||||
| -rw-r--r-- | config/webpack/staging.js | 4 |
4 files changed, 10 insertions, 6 deletions
diff --git a/config/webpack/dev.js b/config/webpack/dev.js index 97b6a77ff..7703f8452 100644 --- a/config/webpack/dev.js +++ b/config/webpack/dev.js @@ -1,4 +1,6 @@ const environment = require('./environment') +const webpack = require('webpack') +const UglifyJsPlugin = require('uglify-js') environment.plugins.set( 'UglifyJs', @@ -9,4 +11,4 @@ environment.plugins.set( }) ) -module.exports = environment.toWebpackConfig()
\ No newline at end of file +module.exports = environment.toWebpackConfig() diff --git a/config/webpack/environment.js b/config/webpack/environment.js index ae1deb610..7a96539f1 100644 --- a/config/webpack/environment.js +++ b/config/webpack/environment.js @@ -1,6 +1,4 @@ const { environment } = require('@rails/webpacker') -const webpack = require('webpack') -const UglifyJsPlugin = require('uglify-js') const CleanWebpackPlugin = require('clean-webpack-plugin') let pathsToClean = [ @@ -33,4 +31,4 @@ environment.plugins.set( // jquery: "jquery/src/jquery", // } -module.exports = environment
\ No newline at end of file +module.exports = environment diff --git a/config/webpack/production.js b/config/webpack/production.js index 97b6a77ff..7703f8452 100644 --- a/config/webpack/production.js +++ b/config/webpack/production.js @@ -1,4 +1,6 @@ const environment = require('./environment') +const webpack = require('webpack') +const UglifyJsPlugin = require('uglify-js') environment.plugins.set( 'UglifyJs', @@ -9,4 +11,4 @@ environment.plugins.set( }) ) -module.exports = environment.toWebpackConfig()
\ No newline at end of file +module.exports = environment.toWebpackConfig() diff --git a/config/webpack/staging.js b/config/webpack/staging.js index 97b6a77ff..7703f8452 100644 --- a/config/webpack/staging.js +++ b/config/webpack/staging.js @@ -1,4 +1,6 @@ const environment = require('./environment') +const webpack = require('webpack') +const UglifyJsPlugin = require('uglify-js') environment.plugins.set( 'UglifyJs', @@ -9,4 +11,4 @@ environment.plugins.set( }) ) -module.exports = environment.toWebpackConfig()
\ No newline at end of file +module.exports = environment.toWebpackConfig() |
