AG-1922 Framework Sweep
This commit is contained in:
@@ -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,
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user