AG-1922 Framework Sweep

This commit is contained in:
MrSafferty
2018-07-18 16:03:44 +01:00
parent 449a88e832
commit eee938e0e7
7 changed files with 59 additions and 45 deletions

View File

@@ -3,16 +3,17 @@ const path = require('path');
const SRC_DIR = path.resolve(__dirname, '../src-examples');
module.exports = {
mode: 'production',
entry: SRC_DIR + "/index.js",
output: {
path: path.resolve(__dirname, '../'),
filename: "dist/react-examples.js"
},
module: {
loaders: [
rules: [
{
test: /\.css$/,
loader: "style!css"
loader: "style-loader!css-loader"
},
{
test: /\.js$|\.jsx$/,
@@ -24,7 +25,7 @@ module.exports = {
},
{
test: /\.(png|jpe?g|gif|svg|woff|woff2|ttf|eot|ico)$/,
loader: 'file?name=[path]/[name].[ext]'
loader: 'file-loader?name=[path]/[name].[ext]'
}
]
},
@@ -34,11 +35,12 @@ module.exports = {
"ag-grid-enterprise": path.resolve('./node_modules/ag-grid-enterprise'),
react: path.resolve('./node_modules/react')
},
extensions: ['', '.js', '.jsx']
extensions: ['.js', '.jsx']
},
performance: {
hints: false
},
devServer: {
historyApiFallback: true,
contentBase: './',
hot: true
port: 8080,
}
};