1
0
Fork 0
mirror of https://github.com/betagouv/mon-entreprise synced 2025-02-08 22:15:02 +00:00
mon-entreprise/source/webpack.config.js
Mael Thomas c1cfb20bf1 [moteur] Le parser Nearley renvoit maintenant un AST similaire au notre
Il reste à le reparser pour résoudre les variables en fonction de la situation, calculer les nodeValues, ajouter les missingVariables

Puis implémenter les modifieurs de temps

Puis ajouter le prorata à la multiplication

                             \
                              \
                               \\
                                \\
                                 >\/7
                             _.-(6'  \
                            (=___._/` \
                                 )  \ |
                                /   / |
                               /    > /
                              j    < _\
                          _.-' :      ``.
                          \ r=._\        `.
                         <`\\_  \         .`-.
                          \ r-7  `-. ._  ' .  `\
                           \`,      `-.`7  7)   )
                            \/         \|  \'  / `-._
                                       ||    .'
cjr                                     \\  (
10mar02                                  >\  >
                                     ,.-' >.'
                                    <.'_.''
                                      <'
2017-03-07 18:25:25 +01:00

56 lines
1.1 KiB
JavaScript

var webpack = require('webpack'),
autoprefixer = require('autoprefixer')
module.exports = {
devtool: 'cheap-module-source-map',
entry: [
'webpack-dev-server/client?http://localhost:3000/',
'webpack/hot/only-dev-server',
'react-hot-loader/patch',
'babel-polyfill',
'./source/entry.js'
],
output: {
path: require('path').resolve('./dist/'),
filename: 'bundle.js',
publicPath: '/dist/'
},
module: {
loaders: [ {
test: /\.css$/,
loader: 'style!css!postcss-loader'
}, {
test: /\.html$/,
loader: 'html'
},
{
test: /\.yaml$/,
loader: 'json!yaml'
},
{
test: /\.js$/,
exclude: /node_modules/,
loader: 'babel-loader'
},
{
test: /\.(jpe?g|png|gif|svg)$/i,
loader: 'url?limit=10000!img?progressive=true'
}, {
test: /\.ne$/,
loader: 'nearley'
}]
},
postcss: [
autoprefixer({
browsers: [ '> 1% in FR', 'not ie < 10' ]
})
],
plugins: [
new webpack.HotModuleReplacementPlugin(),
new webpack.NoErrorsPlugin(),
// in order to use the fetch polyfill:
new webpack.ProvidePlugin({
'fetch': 'imports?this=>global!exports?global.fetch!whatwg-fetch'
})
]
}