diff options
| author | Guillaume | 2017-10-16 17:57:25 +0200 | 
|---|---|---|
| committer | Guillaume | 2017-10-16 17:57:25 +0200 | 
| commit | 1c8f131301e7efa828f60945273bfb6b16a0e430 (patch) | |
| tree | 1ca83adf5782e94be25627a9a6b8210a95ca7c63 /config/webpack | |
| parent | 6346c658c6e6775b7e50c042602f4dfb0aca52ce (diff) | |
| download | chouette-core-1c8f131301e7efa828f60945273bfb6b16a0e430.tar.bz2 | |
add jest for js test, fix js test errors, remove unused config in config/environement
Diffstat (limited to 'config/webpack')
| -rw-r--r-- | config/webpack/environment.js | 7 | ||||
| -rw-r--r-- | config/webpack/test.js | 5 | 
2 files changed, 5 insertions, 7 deletions
| diff --git a/config/webpack/environment.js b/config/webpack/environment.js index 7a96539f1..e7c879fb9 100644 --- a/config/webpack/environment.js +++ b/config/webpack/environment.js @@ -18,13 +18,6 @@ environment.plugins.set(    new CleanWebpackPlugin(pathsToClean, cleanOptions)  ) -// environment.plugins.set('Provide', new webpack.ProvidePlugin({ -//     $: 'jquery', -//     jQuery: 'jquery', -//     jquery: 'jquery' -//   }) -// ) -  // const config = environment.toWebpackConfig()  // config.resolve.alias = { diff --git a/config/webpack/test.js b/config/webpack/test.js index 81269f651..d728f40d2 100644 --- a/config/webpack/test.js +++ b/config/webpack/test.js @@ -1,3 +1,8 @@  const environment = require('./environment') +import $ from 'jquery'; +global.$ = global.jQuery = $; + +require('bootstrap') +  module.exports = environment.toWebpackConfig() | 
