본문 바로가기

Development/Web & Server

React에 XLSX & Webpack 설정

참고 : https://github.com/SheetJS/js-xlsx/issues/285



module.exports = {
    // (...)
    plugins: [
        // (...)
        new webpack.IgnorePlugin(/cptable/)
    ],
    node: {
        fs: "empty"
    },
    externals: [
        {  "./cptable": "var cptable",  "./jszip": "jszip" }
    ]
};